2016-06-30 5 views
0

Ich benutze Instagram-API-Anrufe zum Abrufen verschiedener Details wie Medien, Follower-Liste, Follow-by-Liste usw. ... Auch wenn der Benutzer Follower API zurückgegeben hat, einige mal mitInstagram API funktioniert nicht für einige API-Anrufe wie folgt, gefolgt usw.

{ "Paginierung": {} "meta": { "Code": 200}, "data": []}

und manchmal mit

{ "meta": { "error_type": "APINotAllowedError", "code": 400, "error_message": "Sie können diese Ressource nicht anzeigen"}

https://api.instagram.com/v1/users/1334757492/?access_token=2301663158.7114bad.addf9ad5791945e3a89a7fb1c3fca31c

Die obige API funktioniert gut. Auch die API für Medien.

https://api.instagram.com/v1/users/1334757492/followed-by?access_token=2301663158.7114bad.addf9ad5791945e3a89a7fb1c3fca31c

Die oben api funktioniert nicht. Auch api für die folgende Liste und einige andere APIs

Antwort

0

Sie müssen Ihr Access-Token für jeden API-Bereich autorisieren. und führen Sie es im Sandbox-Modus aus. wenn Sie es wollen aktivieren (auf Ihrem Fall müssen Sie mindestens autorisieren public_content und follower_list scope), besuchen Sie diesen Link:

activate public_content: https://api.instagram.com/oauth/authorize/?client_id=[YOUR-CLIENT-ID]&redirect_uri=[YOURREDIRECT-URI]&response_type=token&scope=public_content

aktivieren Folger Liste: https://api.instagram.com/oauth/authorize/?client_id=[YOUR-CLIENT-ID]&redirect_uri=[YOUR-REDIRECT-URI]&response_type=token&scope=follower_list

Referenz: 1. https://www.instagram.com/developer/authorization/ 2. https://www.instagram.com/developer/sandbox/