error_type":"OAuthAccessTokenException","code":400,..(instagram) [英] error_type":"OAuthAccessTokenException","code":400,.. (instagram)
本文介绍了error_type":"OAuthAccessTokenException","code":400,..(instagram)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在访问instagram API以显示特定帐户的内容,但是出现此错误:
I am accessing the instagram API to display content from a specific account, however I get this error:
/**/ 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";
推荐答案
您无法再使用client_id
访问此API,必须进行身份验证,获取access_token
并使用access_token
进行API调用,请参阅有关的文档.此端点在这里:
https://www.instagram.com/developer/endpoints/users/#get_users_media_recent
You cannot access this API with client_id
anymore, you have to authenticate, get an access_token
and make API call with access_token
, see documentation for this endpoint here:
https://www.instagram.com/developer/endpoints/users/#get_users_media_recent
这篇关于error_type":"OAuthAccessTokenException","code":400,..(instagram)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文