Facebook page insights via API

痞子三分冷 提交于 2020-01-11 13:55:09

问题


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.


回答1:


Insights table docs say it is possible to retrieve metrics for all pages that are owned by currently logged in user after requesting read_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).




回答2:


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.



来源:https://stackoverflow.com/questions/3966666/facebook-page-insights-via-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!