我一直在尝试通过 instagram API 工作,但我无法获取访问 token 。在 instagram API 中,它声明:
At this point, we present the user with a login screen and then a confirmation screen where they approve your app’s access to his/her Instagram data.
现在我想知道如果您不希望用户必须登录怎么办?例如,假设我有一个网站,我只想显示我的最新图片。用户不必登录就可以看到这些。但是,所有获取用户媒体的端点(http://instagram.com/developer/endpoints/)都需要用户登录提供的 access_token。如何在没有用户登录的情况下获取我的最新图像?
最佳答案
您使用的是哪个端点?
GET/users/{user-id}/media/recent
端点需要身份验证。因此,如果没有访问 token ,就无法获取特定用户的媒体。
关于java - 如何在没有用户登录的情况下使用 instagrams API 获取我的最新图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20051434/