error_type":" OAuthAccessTokenException"," code":400,..(instagram)

时间:2016-01-28 16:14:47

标签: angularjs instagram-api

我正在访问Instagram API以显示来自特定帐户的内容,但是我收到此错误:

/**/ JSON_CALLBACK({"meta":{"error_type":"OAuthAccessTokenException","code":400,"error_message":"The access_token provided is invalid."}})

我已在https://www.instagram.com/developer/

中注册了我的应用 当访问这里时,

位,例如我得到上面的错误:

   var endpoint = "https://api.instagram.com/v1/users/" + user_id + "/media/recent/?";
    endpoint += "?count=99";
    endpoint += "&client_id=" + client_id;
    endpoint += "&callback=JSON_CALLBACK";

1 个答案:

答案 0 :(得分:7)

您无法再使用client_id访问此API,您必须进行身份验证,获取access_token并使用access_token进行API调用,请参阅此端点的文档: https://www.instagram.com/developer/endpoints/users/#get_users_media_recent

相关问题