如何通过Instagram Api获取用户的媒体? [英] How to get user's media through Instagram Api?

查看:170
本文介绍了如何通过Instagram Api获取用户的媒体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以使用来查看我的媒体

I can see my media using

https://api.instagram.com/v1/users/self/media/recent/?access_token=**MY_ACCESS-TOKEN**

我想获取用户的媒体,所以我用

I want to get user's media, so I use this

https://api.instagram.com/v1/users/**ID_USER**/media/recent/?access_token=**MY_ACCESS_TOKEN**

我收到一个错误消息,因为他的帐户是私人帐户

I get an error, because his account is private

{"meta":{"error_type":"APINotAllowedError","code":400,"error_message":"you cannot view this resource"}}

但是我跟随他,所以我应该去看他的媒体.我该怎么办?

But I follow him, so I should see his media. What should I do ?

推荐答案

以下链接无需任何身份验证即可对我有效

the following link works for me without any authentication

https://www.instagram.com/{username}/media/

这篇关于如何通过Instagram Api获取用户的媒体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆