“#100您必须提供拥有或为应用程序开发人员的应用程序访问令牌或用户访问令牌”请参见说明?

问题描述

我请求查找有关我的用户访问令牌的数据:

fetch("https://graph.facebook.com/v8.0/debug_token?input_token=" + access_token).then(function (response) {
   response.text().then(function (textII) {
       alert(textII);
   });
});

在这种情况下,在对应用程序和Facebook授权后,我将从auth Response中获取accesstoken值:

{
    status: 'connected',authResponse: {
        accesstoken: '{access-token}',expiresIn:'{unix-timestamp}',reauthorize_required_in:'{seconds-until-token-expires}',signedRequest:'{signed-parameter}',userID:'{user-id}'
    }
}

但是我得到一个错误

{
   "error": {
      "message": "(#100) You must provide an app access token or a user access token that is an owner or developer of the app","type": "OAuthException","code": 100,"fbtrace_id": "AtpM_XaTOgH7YH-OXHdQCXj"
   }
}

我的变量access_token的值不为null(我已选中),而这是一种用户访问令牌(关键字“ sort of”)。那怎么了请解释。如果您需要有关我需要的信息,那么对于此请求,我将需要它:

for (var iio = 0; iio < posts_ids.length; iio++) {
fetch("https://graph.instagram.com/" + posts_ids[iio] + "?fields=id,media_type,media_url,owner,timestamp&access_token=" + access_token).then(function (response) {
      response.text().then(function (textII) {
          alert(textII);
      });
  });
}

哪个抛出错误

{
   "error": {
      "message": "Invalid OAuth access token.","code": 190,"fbtrace_id": "AD7BAPqUGdQGC6dyV9K_FFr"
   }
}

同时,在我之前的请求中,仅以“ https://graph.facebook.com/”开头,而不是以“ https://graph.instagram.com/”开头,所有内容都与accesstoken一起使用,注册后我收到了。 请帮帮我。我是Instagram API的新手,所以我可能很笨。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)