获取facebook页面的见解数据

Chi*_*ayu 9 facebook facebook-graph-api

我想获得一个facebook页面的见解数据.我试过使用这个url的图形api:

https://graph.facebook.com/149279625121774/insights/?access_token=XXXX
Run Code Online (Sandbox Code Playgroud)

但它给出了空数据:

{    "data": [
          ],    "paging": {
      "previous": "https://graph.facebook.com/149279625121774/insights/...",
      "next": "https://graph.facebook.com/149279625121774/insights/..." 
     } 
}
Run Code Online (Sandbox Code Playgroud)

'149279625121774'是页面ID.

有人帮我这个吗?

ifa*_*our 8

更新的答案:
Insights只能作为数组检索.阅读Insights你的需要

  • access_token公开可用application_active_users指标的通用
  • access_token适用Insights于该应用的所有应用的通用应用
  • read_insights 权限由该用户所拥有的所有应用程序,网页和域

有关可获得哪些见解的更多详细信息,请查看FQL Insights表


以下是我的评论:

  1. 很可能你没有这个read_insights权限.
  2. 经过身份验证的用户应该是该页面的所有者/管理员!
  3. 删除尾部斜杠 /