FB图API获取洞察Instagram媒体收藏

发布于 2025-02-01 08:57:36 字数 427 浏览 3 评论 0原文

尝试通过以下查询获取媒体收集的见解:

<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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

完美的未来在梦里 2025-02-08 08:57:36

事实证明是正确的查询,在General API Change 2020年,媒体需要成为海报。
一切都很好。

It turns out to be correct query, media need to be poster after general API change 2020.
Everything works well.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文