开发者

is OAuth required in Facebook Graph API?

i have a problem .. i want to get all the feeds from a facebook page using fb graph API without OAuth but i have a problem

https://graph.facebook.com/[page ID]/feed
i get the following response 

{
   "error": {
      "type": "OAuthAccessTokenException",
      "message": "An access token is required to requ开发者_C百科est this resource."
   }
}

while i check another page it gets right response

https://graph.facebook.com/[another page ID]/feed

{
   "data": [
      {
...

why it's asking for an access token for a page ... and it doesn't do that for another page ?

EDIT

i checked the first page Graph call 2 days ago and it was working 100%


You should always be including an OAuth access token (whether it's a user's, if you're working directly on behalf of a user, or your app's, if you're not doing something in a user's context). Otherwise you might not be able to access all of the things that you should be able to access.


I am not sure whether or not you need OAuth but here is how you can get the access token.

More Resources:

http://developers.facebook.com/docs/api


Yes, OAuth is the only supported form of authentication. However, some pages don't require it, such as fan pages (e.g. https://graph.facebook.com/cocacola/feed)

EDIT: Facebook has apparently changed their policy on this endpoint.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜