So, I've been researching and working on this PHP that retrieves the user information from Facebook (if logged on) and stores it into my database.

However, when I load the page on my browser, it is completely blank. I have included the facebook.php SDK file in the same directory as the facebook_signup.php file (code shown below). I would greatly appreciate if someone helped be figure out why this is not working.

1 Answer
1

You should update PHP-SDK to latest version, but be prepared to change code, since there is no method getSession in new PHP-SDK. You should use getUser method to get user id. And probably better doing request to Graph API only if user is logged in...

It is updated. I have also used the example PHP available on Github and it does not work. The page appears blank for the example as well. All other PHP files that I have run perfectly fine.
–
Russ TedJan 24 '12 at 22:26