开发者

Help on Facebook Graph API, returns "false" but UID is public

I really could not understand why on some Facebook objects (being more specific: user posts) the Graph API returns false when using an access_token obtained via OAuth by an application, but NOT by using a user access_token.

I have an example here: https://graph.facebook.com/10150158049595775?access_token=XXXXXXXXXX

This post is public, and I have no friends in common with this user.

If you try to access the url above by using a token obtained via the usual Facebook OAuth scheme, the server return "false".

If you use your user access token, for example the one that FB gives you by visiting the examples in this page http://developers.facebook.com/docs/reference/api/, the Graph API correctly gives you the users's post detail.

I believe it's not a matter of extended permissions required, first because the post above is public, and second, because for testing I've tried to make my application generate a token by asking ALL user permissions (yes, all permissions found on dev开发者_如何学JAVAelopers.facebook.com/docs/authentication/permissions/) and the answer was always "false".


I suppose this post is "Available to everyone on Facebook", which may be the reason why Facebook is accepting a user access_token (i.e. viewing the post as a user) and not accepting an application access_token.

Also note that this would work without access_token (if you prepend the owner id):

https://graph.facebook.com/752020774_10150158049595775

I guess this is treated as "Publicly accessible"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜