Rails koala get page and page post insights

◇◆丶佛笑我妖孽 提交于 2019-12-12 01:46:02

问题


Getting insights for page posts returning []

This is for the adidas page
pp graph.get_object("182162001806727/insights/")
It generally returns fields for country data and nothing for page_impressions or page_engagement, etc

Even though the docs mention that Insights are generated for a psot/page with more than 30 likes, but still nothing.

Infact, insights for the first post of Adidas page returns absolutely nothing
pp graph.get_object("182162001806727_1189840444372206/insights")
or
graph.get_connections('182162001806727_1189840444372206', 'insights/page_impressions_frequency_distribution', period: 'week'

even though it has high amount of likes and comments, if you check their feed.

So, what is the correct method or is it even possible or publicly available.

And, for pages, is the page_impression/engagement data available?


回答1:


https://developers.facebook.com/docs/graph-api/reference/v2.7/insights#reading:

Permissions:
- Any valid access token can be used for publicly available metrics (currently page_fans_country or page_storytellers_by_country)
- A user access token with read_insights permission can retrieve metrics for all pages and domains owned by this user.
- A page access token with read_insights permission can retrieve all metrics for that Page.

Those two permissions highlighted in bold are the only two publicly available ones. For everything else, you need an admin user token or a page token.



来源:https://stackoverflow.com/questions/39047240/rails-koala-get-page-and-page-post-insights

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