0

我已获得 Instagram Business API 的批准,并且仅用于从 Insights 调用数据,这对于已登录的用户来说工作正常。

我正在尝试从 API 获取用户不拥有的 IG 帐户帐户的基本数据,例如关注者、关注者、帖子、帖子喜欢、帖子评论、帖子标题、帖子日期。

尝试了这里所说的:https ://developers.facebook.com/docs/instagram-api/business-discovery/ :

GET graph.facebook.com/v3.2/{id}?fields=business_discovery.username(bluebottle){followers_count,media_count,media{comments_count,like_count}}

这是我们得到的错误:

{
  "error": 
    "message": "(#100) Tried accessing nonexisting field (business_discovery) on node type (Business)".
    "type": "OAuthException",
    "code": 100,
    "fbtrace_id": "FYrJiGR310k"
  }
}

我在文档中找不到有关如何执行此操作的任何地方,但在有人说不可能之前,我知道有两个网站现在已经这样做了:https ://www.owlstat.com和https:// web.stagram.com

我想也许他们也可以这样做https://www.instagram.com/web/search/topsearch/?context=user&count=0&query=bluebottle但这不是一个长期的解决方案。

希望有人能帮忙!谢谢。

4

1 回答 1

0

您示例中的 {id} 必须是被授予 Instagram Business API 权限的页面的 Instagram Business ID。要找到它,请打开 Facebook Graph Explorer 并使用用户访问令牌运行它:

GET graph.facebook.com/v3.2/accounts?fields=instagram_business_account{id,username}

您会看到自己的 Instagram 商家 ID。然后,使用页面访问令牌,执行:

GET graph.facebook.com/v3.2/{id}?fields=business_discovery.username(bluebottle){followers_count,media_count,media{comments_count,like_count}}

将 {id} 替换为您的 Instagram 企业 ID。

于 2019-01-09T04:41:37.097 回答