当用户通过我的网站登录到instagram时,我如何获取客户端ID和重定向URL


How can I get client ID and redirect URL when a user login to instagram through my site?

我需要他们将图像导入我的网站。

在他们的文档中,他们通过以下url 用响应代码验证使用

https://api.instagram.com/oauth/authorize/?client_id=CLIENT-ID&redirect_uri=redirect-uri&response_type=代码

上面的URL只给了我一个代码,而不是所有的图像。这不是我的目标。当一个用户来到我的网站,点击带有用户名和密码的Instagram登录按钮时,我需要将该用户的所有图像导入我的网站。

这可能吗?

按照此操作,直到您获得访问令牌:http://instagram.com/developer/authentication/

一旦你得到了,你可以打电话https://api.instagram.com/v1/users/self/media/recent?access_token=YOURACCESSTOKEN

这将返回用户最新图像的JSON结果。在pagination元素中,您会发现一个URL,您可以调用它来请求下一组图像。

有关参数的更多信息,请查看http://instagram.com/developer/endpoints/users/

熟悉API的一个好方法是玩API控制台:http://instagram.com/developer/api-console/