如何使用Instagram图API获取第三人称Instagram数据
我成功地使用Instagram Graph API获取自己的数据,但无法找到获取其他人数据的方法。 官方文件清楚地表明,可以获得其他Instagram业务的基本数据元数据,并且无法找到有关它的任何代码或文档。 如果有人知道该怎么做,我很想知道。 即使为我提供了所说的信息的链接,这些链接被大大应用了。
公文 https://developers.faceers.facebook.com/docs/instagram-api
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这在 api参考。
棘手的部分是您需要在URL中提供您的Instagram帐户ID (或“业务帐户ID”)。 (基本上,您的帐户节点用于访问
business_discovery
edge。)您在字段参数中提供目标帐户的用户名,例如:
其中
blueblottle
是用户名。您想要数据的帐户。请注意,这确实与业务和创建者帐户一起使用,因此您不会以这种方式获得任何随机帐户的数据。
编辑:我已经介绍了在。总而言之,您可以使用此请求获取所有可访问的Instagram配置文件的帐户ID:
(在Graph Api Explorer中尝试一下)
然后,您将使用返回的
ID
返回instagram_business_account_account
响应的字段。This is described in the Business Discovery documentation. See also the API reference.
The tricky part is that you need to provide your Instagram account ID (or “business account ID”) in the URL. (Basically, your account's node is used to access the
business_discovery
edge.)You provide the target account's username in the field parameter, for example:
Where
bluebottle
is the username of the account you want data for.Mind that this really works with business and creators accounts, so you won't obtain data for any random account this way.
Edit: I've covered the process of getting the “business account ID” in this blog post. In summary, you can get the account ID of all accessible Instagram profiles using this request:
(Try it in Graph API Explorer)
You will then use the
id
field of the returnedinstagram_business_account
response.