我使用Instagram的API(OAuth的),我能使用如何在Instagram API中獲取用戶關注者?
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和用戶的數組。
我的問題是我該怎麼做才能獲得用戶的關注者?
我知道我必須使用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"
}
請幫助!