如何使用Instagram API从永久链接中获取帖子的Media_id?

发布于 2025-02-10 08:27:26 字数 446 浏览 4 评论 0原文

我正在尝试从Instagram帖子的永久链接中获取Media_id

我知道存在:

GET https://graph.facebook.com/{api-version}/?fields=business_discovery.username(username){media,id}&access_token={access-token}

这使我可以从特定帐户中获得Media_id

但这对我无济于事,因为我需要使用任何帖子Media_url使用其Media> Media_ID获取Media_id,而不是任何帐户

另外,我在官方的Facebook/Instagram API文档中找不到任何相关的内容。

I am trying to obtain media_id from the permalink of an Instagram post.

I know that there exists:

GET https://graph.facebook.com/{api-version}/?fields=business_discovery.username(username){media,id}&access_token={access-token}

This lets me get media_id for all latest posts from a specific account.

But that does not help me as I need to get media_id for any particular post instead of any account as my objective is to get media_url of any post using its media_id.

Also, I could not find anything related in the official Facebook/Instagram API documentation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文