We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello. Why using this code?
$friends = json_decode(file_get_contents( 'https://graph.facebook.com/me/friends?access_token='.$session['access_token']) );
I can get successfully my friends list, and when I use this below:
$feed = json_decode(file_get_contents( 'https://graph.facebook.com/me/feed?access_token='.$session['access_token']) );
.... Why Do I get the array $feed empty?
I know I have feeds because entering by http://developers.facebook.com/docs/api and clicking in https://graph.facebook.com/me/feed I can get my feeds correctly.
I realised that entering by http://developers.facebook.com/docs/api the access_token parameter is not equal than $session['access_token']. Why?
The text was updated successfully, but these errors were encountered:
Where do you get $session? what it contained?
Sorry, something went wrong.
$facebook = new Facebook(array( 'appId' => $config['APP_ID'], 'secret' => $config['SECRET'], 'cookie' => $config['COOKIE'], )); $session = $facebook->getSession(); ##################### $session contains: Array ( [access_token] => 153071268054489|2.mSp7pVFk1cOCLgUWGCz7Lx__.3600.1284458400-100001574041294|4oWu6GaRyNiphMFMUCnKDr9m2kc [expires] => 1284458400 [secret] => 88kDxR6cxOVNVWAwuJEStQ__ [session_key] => 2.mSp7pVFk1cOCLgUWGCz7Lx__.3600.1284458400-100001574041294 [sig] => 50d0a5dd97282038f888b06b98a3eb60 [uid] => 100001574041294 )
So you are actually using facebook php sdk instead of ios sdk. In this case, please ask the question in http://github.com/facebook/php-sdk/ . Thanks!
No branches or pull requests
Hello. Why using this code?
$friends = json_decode(file_get_contents( 'https://graph.facebook.com/me/friends?access_token='.$session['access_token']) );
I can get successfully my friends list, and when I use this below:
$feed = json_decode(file_get_contents( 'https://graph.facebook.com/me/feed?access_token='.$session['access_token']) );
.... Why Do I get the array $feed empty?
I know I have feeds because entering by http://developers.facebook.com/docs/api and clicking in https://graph.facebook.com/me/feed I can get my feeds correctly.
I realised that entering by http://developers.facebook.com/docs/api the access_token parameter is not equal than $session['access_token']. Why?
The text was updated successfully, but these errors were encountered: