Skip to content
New issue

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

Getting Friends, OK. Getting Home, Feed, etc, fails!. #50

Closed
nacesprin opened this issue Sep 13, 2010 · 3 comments
Closed

Getting Friends, OK. Getting Home, Feed, etc, fails!. #50

nacesprin opened this issue Sep 13, 2010 · 3 comments

Comments

@nacesprin
Copy link

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?

@yujuan
Copy link

yujuan commented Sep 13, 2010

Where do you get $session? what it contained?

@nacesprin
Copy link
Author

$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
)

@yujuan
Copy link

yujuan commented Sep 14, 2010

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!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants