我想为我的页面上的帖子获得职位约定。但是,我在图形API资源管理器中得到以下调试消息
The engagement field does not exist on the PagePost object.这就是我的查询
MY_PAGE/posts?fields=id,from,message,engagement,created_time,permalink_url,likes.limit(0).summary(true),insights.metric(post_engaged_users).period(lifetime)&limit=10我在洞见页面上找不到任何度量,但是浏览之前的堆栈溢出问题,我发现“参与”是您在查询中传递的内容。我可以通过facebook看到我的帖子的约定。如何使用图形API检索相同的信息?
发布于 2022-03-09 18:44:05
端点是:
/{object-id}/insights?metric={metric-1},{metric-2},{metric-3},...其中对象- Id是您的页面Id。您可以选择不同的员额级别指标:https://developers.facebook.com/docs/graph-api/reference/v13.0/insights#page-post-impressions
注意每个度量的不同时间段。
确保您拥有正确的权限: read_insights、pages_read_engagement
https://stackoverflow.com/questions/71346874
复制相似问题