【问题标题】:error_type":"OAuthAccessTokenException","code":400,.. (instagram)error_type":"OAuthAccessTokenException","code":400,.. (instagram)
【发布时间】:2016-01-28 16:14:47
【问题描述】:

我正在访问 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";

【问题讨论】:

标签: angularjs instagram-api


【解决方案1】:

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

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2020-05-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-02-17
  • 2020-03-21
  • 1970-01-01
相关资源
最近更新 更多