开发者

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

开发者 https://www.devze.com 2023-02-06 22:52 出处:网络
I tried this in my web browser: https://graph.facebook.com/<facebookID>/statuses?access_token=<my access token>

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* gr开发者_StackOverflow中文版aphPath = [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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消