Instagram API for ADS帖子无效(Instagram API for ADS posts not working)

编程入门 行业动态 更新时间:2024-10-10 13:23:19
Instagram API for ADS帖子无效(Instagram API for ADS posts not working)

我通过使用媒体端点获得Instagram帖子详细信息(喜欢,评论):

$data1 = file_get_contents("https://api.instagram.com/v1/media/$media_id/likes?access_token=$access_token");

这适用于我的Feed中的普通帖子,但是当我输入$ media_id作为AD的Instagram帖子时,我总是得到无效的媒体ID

{ "meta": { "error_type": "APINotFoundError", "code": 400, "error_message": "invalid media id" } }

广告是否被视为不同类型的帖子,或者API无法从中检索任何详细信息?

I get instagram post details (likes, comments) by using the media endpoint:

$data1 = file_get_contents("https://api.instagram.com/v1/media/$media_id/likes?access_token=$access_token");

This works for normal posts from my feed, but when I input the $media_id for an instagram post that is an AD I always get invalid media id

{ "meta": { "error_type": "APINotFoundError", "code": 400, "error_message": "invalid media id" } }

Are ads treated as different types of posts or the API is unable to retrieve any details from them?

最满意答案

是的,广告被视为不同类型的帖子,只能通过Facebook API进行管理或完全阅读。 尝试使用Graph API , Marketing API或Business Manager API,这是我获得最有用的提示和结果的地方。

(对不起,没有足够的代表发布超过两个链接。但不要担心,你会在谷歌的心跳中找到它)

Yes, the ads are treated like a different type of post and can only be managed or fully read by means of the Facebook APIs. Try the Graph API, the Marketing API or the Business Manager API, that's where I got the most useful tips and results.

(sorry, dont have enough rep to post more than two links. But don't worry, you'll find it on google in a heartbeat)

更多推荐

本文发布于:2023-07-29 03:27:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1311973.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:帖子   API   Instagram   ADS   working

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!