Unable to retrieve data from facebook graph url for a page

时间:2015-06-15 14:48:34

标签: facebook-graph-api

Check out:

https://www.facebook.com/MitraJyothiorg

It is a page of an NGO.

Correspondingly, I should be able to find data of the page in:

http://graph.facebook.com/MitraJyothiorg

This does not seem to work. Any clues?

Please note: I am doing a simple http call and it usually works for other pages, for example, if i do the same thing for another page:teachforindia

2 个答案:

答案 0 :(得分:0)

错误信息非常明确:

{
   "error": {
      "message": "Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
      "type": "GraphMethodException",
      "code": 100
   }
}

您需要添加至少一个App Access令牌。参见

  

对于已发布的页面,您需要:

     
      
  • 需要应用或用户访问令牌才能查看完整公开页面中的字段。
  •   
  • 需要用户访问令牌才能查看此人可以查看的受限页面中的字段(例如限制某些人口统计信息,例如位置或年龄,或者只有页面管理员可以查看的字段)。
  •   
  • 页面访问令牌也可用于查看受限制的字段。
  •   

答案 1 :(得分:-1)

I am not able to access that page (get a 404 error). Maybe the page is still hidden? Then you will not be able to access it via the graph API imho.