简体   繁体   English

获取关注者并关注Instagram API

[英]Getting followers and following with Instagram APIs

I am studying to integrate Instagram into my app.But I have some confusion. 我正在学习将Instagram集成到我的应用程序中。但我有些困惑。 I found 2 API document: https://www.instagram.com/developer/ and https://developers.facebook.com/docs/instagram-api/ . 我找到了2个API文档: https//www.instagram.com/developer/https://developers.facebook.com/docs/instagram-api/ They have differences about supporting API Endpoints as well as how to use. 他们在支持API端点以及如何使用方面存在差异。 So, what are they and what should we use the one for my app? 那么,它们是什么以及我们应该为我的应用程序使用哪一个?

I need to get followers and following of user. 我需要得到关注者和关注用户。 But I could not found any APIs support for that functions. 但我找不到任何API支持该功能。

Could you please help, I really need it for my app. 你可以请求帮助,我真的需要它为我的应用程序。

Thanks a lot 非常感谢

As of 1st of June 2016. Now you're only able to get the list of your own followers/followings. 截至2016年6月1日。现在您只能获得自己的关注者/关注者列表。

You can read about it here . 你可以在这里阅读它

This api is used to get own followers/following list : 这个api用于获取自己的粉丝/以下列表:

https://api.instagram.com/v1/users/self/follows?access_token=ACCESS-TOKEN

I was using the documentation found on the Instagram website, which will show you lots of end points but only let you use these two if your app has not been approved. 我使用的是Instagram网站上的文档,它会显示很多端点,但只有在您的应用尚未获得批准的情况下才允许您使用这两个端点。 At least that was the case until a few days ago, when accessing those endpoints started throwing off CORS errors. 至少在几天前就是这种情况,当访问这些端点时开始抛弃CORS错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM