简体   繁体   English

Facebook 图表 API - 按 Facebook 页面 ID 获取点赞数

[英]Facebook Graph API - Get Likes count by Facebook Page ID

I am using the Facebook Graph API and is it possible to get the like account for a Facebook Page by ID?我正在使用 Facebook 图表 API 是否可以通过 ID 获得 Facebook 页面的类似帐户?

I have tried the following URL:我试过以下 URL:

https://graph.facebook.com/{page_id}?fields=name&access_token={my_api_access_token} https://graph.facebook.com/{page_id}?fields=name&access_token={my_api_access_token}

And I get this error:我得到这个错误:

{
   "error": {
      "message": "(#100) Page Public Metadata Access requires either app secret proof or an app token",
      "type": "OAuthException",
      "code": 100,
      "fbtrace_id": "Ac1RaXdc4MG24eJ3UnYkIz7"
   }
}

My Facebook account is not associated with this Facebook Page.我的 Facebook 帐户与此 Facebook 页面没有关联。 Is not possible to get the likes for a certain Facebook Page or do I have to be an admin to that Facebook Page?无法获得某个 Facebook 页面的赞,还是我必须成为该 Facebook 页面的管理员?

You would need to submit your app for review of the mentioned feature first.您需要先提交您的应用程序以审核上述功能。

https://developers.facebook.com/docs/apps/features-reference#page-public-metadata-access https://developers.facebook.com/docs/apps/features-reference#page-public-metadata-access

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM