FB图API获取洞察Instagram媒体收藏
尝试通过以下查询获取媒体收集的见解:
<page id>/media?fields=id,media_url,media_type,timestamp,like_count,media_product_type,permalink,comments{like_count},ig_id,comments_count,insights.metric(impressions,engagement,reach,saved)&limit=30
作为回报,只需获得一个带有洞察力的记录。
需要洞察力来收集最后30个帖子。
删除Insights.metric(印象,参与度,触及,保存)
API返回最后30个帖子,但显然没有Insights
Trying to fetch insights for media collection with these query:
<page id>/media?fields=id,media_url,media_type,timestamp,like_count,media_product_type,permalink,comments{like_count},ig_id,comments_count,insights.metric(impressions,engagement,reach,saved)&limit=30
In return get only ONE record with insights.
Need insights for collection of last 30 posts.
When remove insights.metric(impressions,engagement,reach,saved)
api returns last 30 posts but obviously without insights
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明是正确的查询,在General API Change 2020年,媒体需要成为海报。
一切都很好。
It turns out to be correct query, media need to be poster after general API change 2020.
Everything works well.