Instagram oauth api 给出 {“error_message": “Matching code not found or already used.", “code": 400, “error_type": “OAuthException"} [英] Instagram oauth api gives {"error_message": "Matching code was not found or was already used.", "code": 400, "error_type": "OAuthException"}

查看:25
本文介绍了Instagram oauth api 给出 {“error_message": “Matching code not found or already used.", “code": 400, “error_type": “OAuthException"}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用 Instagram API 的实时服务器上看到此错误.

I am seeing this error from my live server using the Instagram API.

{
"error_message": "Matching code was not found or was already used."
, "code": 400
, "error_type": "OAuthException"
}

我在这里阅读了一些清除缓存的建议,但这并不能解决问题.我也无法直接在 Instagram 网站上提交支持请求,因为我在尝试提交请求时收到错误消息.

I have read a few suggestion on here to clear cache but that isn't fixing the issue. I am also unable to submit a support ticket directly on the Instagram site as I am receiving an error message while attempting to submit a ticket.

推荐答案

我也遇到了同样的问题.我已经尝试了 SO 上可用的所有解决方案.但是没有用.

I was also facing the same problem. I have tried all the solutions available on the SO. But it didn't work.

当我详细调试那个Instagramcode时,我发现Instagram在授权后提供了这样的code -

When I debugged the that Instagram code in details, I found that Instagram was providing the code something like this after authorization -

<代码> AQAbo7gLQMVRqC4NitrEGSj6tPa8UBREsSYDAL7IZcthASbSKaJANrry3HgQnofJuY4nJx9NTuo_eO4SV8ol4-olk0Y4NzhbXkxTw8G9dBq-T3uZuBzRIVJd61LsYHq15tIeDswI82ri6lt7ngc76eoAAAypgGc3cq9DqayVb7oCpfWZEym6KPH_hJMVaoUOAjN9OT1EEtYuUhmUFgJHHEy66ab9LgHZLXiFxugYBkrdKw #_

当我从 code 中删除结尾的 2 个字符 #_ 时,它开始工作.下面是我用来获取 access_token 的最终 code -

It started working when I removed the ending 2 charaters #_ from the code. Below is the final code that I used to get the access_token -

<代码> AQAbo7gLQMVRqC4NitrEGSj6tPa8UBREsSYDAL7IZcthASbSKaJANrry3HgQnofJuY4nJx9NTuo_eO4SV8ol4-olk0Y4NzhbXkxTw8G9dBq-T3uZuBzRIVJd61LsYHq15tIeDswI82ri6lt7ngc76eoAAAypgGc3cq9DqayVb7oCpfWZEym6KPH_hJMVaoUOAjN9OT1EEtYuUhmUFgJHHEy66ab9LgHZLXiFxugYBkrdKw

就我而言,这是一个简单的解决方案.

This was a simple solution in my case.

如果人们仍然面临这个问题,我希望这会有所帮助.

I hope this will help people in case they are still facing this issue.

这篇关于Instagram oauth api 给出 {“error_message": “Matching code not found or already used.", “code": 400, “error_type": “OAuthException"}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆