Facebook Connect Script
Use this Facebook Connect script when you want to let your users to login or do stuff on your site without having to create an account.
Usage
How to use it:
Don't forget to download the PHP SDK. Test this script on a PHP page
to see how it works and then try to integrate it in your pages.
This Facebook Connect script will also request permission from the user
to give to your website access to his e-mail address.
You can see that in line 36 is where you get user's data.
Code with Love.

Comments
change $facebook->getSession() to $facebook->getUser()
where is the file "facebook.php"?. I need it!!
Thanks a lot!! After Log in.. I want to take user details.. U r code helped me.. :)
I already change getSession() to getUser(). Why It doesn't show Facebook Connect button to login?
where is the file "facebook.php"?. I need it!!
this is outdated code.
Actually this code is kinda old, needs to be updated to new FB API standards.
getSession() is depreciated use getuser()
hmmmmm
Hi
It is giving following error:
Fatal error: Call to undefined method Facebook::getSession() in facebook-connect-script.php on line 19
Well i want to get user information like User Name,User Email , Status , User Pic
etc kindly help me......