通过 API 获取 Facebook 页面洞察
我想通过 API 访问 Facebook 页面的见解。很可能通过图形 API 获得 Facebook 应用程序的见解,但我找不到 Facebook 页面的类似内容。我错过了什么吗?
具体来说,我正在寻找统计数据,例如总用户数、活跃用户数、帖子等,最好也随着时间的推移进行统计。
I would like to access the insights of a Facebook page via the API. It is very well possible to obtain the insights of a Facebook app via the graph API, but I cannot find something similar for Facebook pages. Am I missing something?
Specifically, I am looking for stats such as total users, active users, posts, etc, preferrably over time as well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Insights
表文档表示可以检索指标请求read_insights
扩展权限后当前登录用户拥有的所有页面。我认为之后图形洞察应该起作用(//insights?access_token=...
)。如果没有,那么您可能需要使用 FQL(他们在文档中有用于获取页面指标的示例)。Insights
table docs say it is possible to retrieve metrics for all pages that are owned by currently logged in user after requestingread_insights
extended permission. I think after that graph insights should work (/<page_id>/insights?access_token=...
). If not then you probably need to use FQL (they have example in docs for getting page metrics).尾部斜杠破坏了此查询。如果删除它,如果权限正确,您将看到见解,如果不正确,则“只有应用程序、页面和域的管理员可以检索见解”。
The trailing slash is breaking this query. If you remove it you will see insights if permissions are correct, or "Only administrators of applications, pages, and domains can retrieve Insights" if not.