Search code examples
iosfacebook-graph-apifacebook-ios-sdk

Facebook Graph API works in web browser, not in iOS SDK


I tried this in my web browser:

https://graph.facebook.com/<facebookID>/statuses?access_token=<my access token>

And I thought in iOS SDK this is the equivalent of that query:

NSString* graphPath = [NSString stringWithFormat:@"%@/statuses",facebookID];
[_facebook requestWithGraphPath:graphPath andDelegate:self];

But that returns an empty JSON data... Am I doing something wrong in here? Other queries seems fine to me (e.g. @"me", @"me/statuses", @"me/friends")

I think this is also documented in http://developers.facebook.com/docs/reference/api/

More info:

I have read_stream permission


Solution

  • I figured it out... I need "friend_statuses" permission! I did not know that! =)