I\'m trying to run the sample code for Facebook connect that I downloaded from http://thinkdiff.net/facebook/php-sdk-3-0-graph-api-base-facebook-connect-tutorial/
I get
You must ensure that your access token is active. Or maybe you're in logout condition. Or try to clean the cookies and cache from your browser (ctrl+shift+del)
Please check if you are getting any Facebook exceptions like
An active access token must be used to query information about the current user.
which causes 0 as user id in return from $facebook->getUser()
.
So please check with getAccessTokenFromCode()
from base_facebook.php
and verify access_token_response
format as it may be in JSON format.
So try to use appropriate decoding method to get $response_params['access_token']
from $access_token_response
.