php - 如何使用 PHP 使用 Instagram Graph API 检索公共(public)帖子信息

标签 php facebook-graph-api instagram

我需要帮助才能开始使用图谱 API 从 Instagram 帐户检索基本公共(public)信息(帐户名称、点赞数、发布日期、图片 URL、描述)。我能够使用 Instagram API 完成所有这些操作,但我还没有看到有关如何使用 Instagram Graph API 执行此操作的任何示例。

最佳答案

是的,Instagram API 将在 2018 年之前弃用一些 API。到 2020 年完成 API 弃用:https://developers.facebook.com/blog/post/2018/01/30/instagram-graph-api-updates/ - 一切都将在 FB 图形 API 上移动。

We will be deprecating the older Instagram API Platform in three phases with complete deprecation occurring in early 2020.

The following will be available until July 31, 2018:

Follower List - to read the list of followers and followed-by users Relationships - to follow and unfollow accounts on a user’s behalf Commenting on Public Content - to post and delete comments on a user’s behalf on public media The following will be available until December 11, 2018:

Commenting - to post and delete comments on a user’s behalf on owned media Public Content - to read any public profile info and media on a user’s behalf Likes - to like and unlike media on a user’s behalf Subscriptions - to receive notifications when media is posted The following will be available until early 2020:

Basic - to read a user’s profile info and media

但是,是的,您的担忧是正确的 - 图形 API 中没有公共(public)内容的方法。

而且您搜索公共(public)内容的用例将不受支持。

FB 希望转向企业帐户方法,而不是成为用于搜索的照片存储库(如 twitter、pinterest 或 flickr)。他们希望拥有带有广告和其他帐户类型特定功能的品牌帐户。 (例如面子书或微信)

关于php - 如何使用 PHP 使用 Instagram Graph API 检索公共(public)帖子信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48626845/

相关文章:

PHP 搜索显示与查询完全不同的重复结果

facebook - 如何在 Facebook 页面上发帖?

facebook-graph-api - Instagram 图谱 API

android - 如何检查我的应用程序是否连接到 Facebook

ios - Instagram InstagramCaption 不工作

javascript - Instafeed.js 不在页面上显示图像

php - Paypal 自适应支付

php - Paypal 不通知我的 IPN 监听器

ios - Instagram 错误 "You can not like this media"?

php - 使用 laravel 进行异步评分(喜欢/不喜欢)