Friday, August 12, 2011

Adding Facebook Api to your file

First register your application with http://developers.facebook.com/
here is the useful link http://itprism.com/blog/register-facebook-application
Login to it and give your application url in it
note: your application should be on remote server or webserver then only it will work and register.
After registration it will give you App Id and API Key use these in your file to run your code.
Next job is to to copy https://github.com/facebook/php-sdk/ link files to your server folder
and import those files to your module where you want to use it.
You can use its example.php file and edit it put your website App Id and API Key and give permissions what else things you require from it except default things it is giving like email,link friend's list etc.
After that put those things in the web server.it will work











No comments:

Post a Comment