【发布时间】:2015-06-17 06:44:21
【问题描述】:
我正在使用 instagram API(oauth),我能够使用获取访问令牌和用户信息
https://api.instagram.com/oauth/authorize/client_id='.$client_id.'&redirect_uri='.$redirect_url .'&response_type=code'
和https://api.instagram.com/oauth/access_token 通过传递客户端ID、秘密和redirect_uri。
当我打第一个电话时
(https://api.instagram.com/oauth/authorize/client_id='.$client_id.'&redirect_uri='.$redirect_url .'&response_type=code') 它给了我 access_token 和 user 的数组。
我的问题是我应该怎么做才能获得用户的关注者?
我知道我必须使用https://api.instagram.com/v1/users/{user-id}/follows?access_token=ACCESS-TOKEN,但由于某种原因我收到了错误消息
{
"code": 400,
"error_type": "OAuthException",
"error_message": "Only response type \"code\" and \"token\" is allowed"
}
请帮忙!!!
【问题讨论】:
标签: php api oauth instagram-api