So this is what I'm doing- I am using facebook login for my site using the php-sdk. I have given the redirect URI to a function that checks if the user exists in my database, if not create the user, then redirect to my home page.
redirect uri is http://somedomain.com/login/check_fb_login
check_fb_login will check if user exists in db, if not create
However, my check_fb_login is not getting the value of the userID.
$facebook->getUser() is getting 0
Why is this so? getUser should return a value because the user has already been authenticated by facebook right?