Install Facebook Login Button
In this post, Ill try to talk about how to Install Facebook Login Button in your website. Facebook Login Button is one of many Facebook Social Plugins that make the user to connect to your application.
In order to Install Facebook Login Button, you have to do several steps:
Second, go to your website and add this to our website.
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=[YourAppID]6&xfbml=1"></script><fb:login-button show-faces="true" width="200" max-rows="1"></fb:login-button>
and change [YourAppId] with your App Id from your Application that you have made in step First.
Third, done with step Second, your application already can be used. However, the above code only request the user to give bassic information. To access other informations such as email you can add this perms=”email” into fb:login-button tag. So it will be like: <fb:login-button perms=”email” show-faces=”true” width=”200″ max-rows=”1″></fb:login-button>. To complete reference you can visit http://developers.facebook.com/docs/authentication/permissions/.
Fourth, until the third steps, facebook login is ready to be used. However, what is the use of facebook login if you cant access the user information. Therefore you have to use FQL that Ill explain in next post.
Hope this Install Facebook Login Button post could be useful for you.