Wednesday, April 22, 2009

Sample developer app Facebook

Facebook installation instructions:
1. Add the developer app (http://www.facebook.com/developers/)
2. Setup a new application to get your API key and Secret key. You will also need to click optional fields and fill in your callback URL (the URL where the app files are stored on your server)
3. You also need to choose an app canvas URL. This can be anything you like that is available, but make a note of what you choose.
4. Finally, click "yes" to "Can your application be added to Facebook?" and then select "Users" for "Who can add it?".
5. That's it. Now install the files on your server and give it a shot!

App installation instructions:
1. Change your API KEY and SECRET in "appinclude.php" flie
2. Create a mysql database in your hosting and import "db.sql"
3. Modify "dbinfo.php" with your database name, database username and password
4. Change www.YOUR_DOMAIN.com to your domain name in all files
5. Change the canvas page url from "http://apps.facebook.com/YOUR_APP/" to your Canvas page url
6. Put gifts images in the "gifts" folder
NOTE: Each page will show 20 gift items... Right now the app is configured for 40 gift items. If you add more gifts please find the following in line 57
echo '<'a href="http://apps.facebook.com/YOUR_APP/?s=0">1<'a> | <'a href="http://apps.facebook.com/YOUR_APP/?s=21">2<'a>';
And add more links like this ... <'a href="http://apps.facebook.com/YOUR_APP/?s=41">3<'a>
7. Upload all files to your server and the app will be ready to go.

download






Artikel yang Berkaitan

1 komentar:

hello... hapi blogging... have a nice day! just visiting here....

Post a Comment