Since you host your own Facebook application, there is some setup you need to do on your web space. If you don’t have a web site (or access to one) that runs PHP, Java, or one of the unsupported languages with a client library, you can use one of the free web hosts available. You will need a middleware application server to handle the business logic for your application because Facebook provides methods only for retrieving data and displaying certain information. I’ll be using PHP for the examples, but they should be relatively straightforward to translate into other languages.
You can download the client libraries for all languages from http://developer.facebook.com/resources.php. If you’re using a *nix system (including OS X), you can simply do the following:
The previous code moves both the PHP 4 and PHP 5 libraries (along with the Footprints sample application). The PHP 4 library is in the folder php4client, and the PHP 5 library is in the client folder. Most likely you will be working with one library or the other, so you really need to move only one of the folders to your server to work on your application.
You can download the client libraries for all languages from http://developer.facebook.com/resources.php. If you’re using a *nix system (including OS X), you can simply do the following:
wget http://developers.facebook.com/clientlibs/facebook-platform.tar.gz
tar zxvf facebook-platform.tar.gz
mv facebook-platform <path_to_web_location>
The previous code moves both the PHP 4 and PHP 5 libraries (along with the Footprints sample application). The PHP 4 library is in the folder php4client, and the PHP 5 library is in the client folder. Most likely you will be working with one library or the other, so you really need to move only one of the folders to your server to work on your application.
0 comments
Post a Comment