Instagram oauth api给出{"error_message":“找不到或已使用匹配代码.","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"}

查看:212
本文介绍了Instagram oauth api给出{"error_message":“找不到或已使用匹配代码.","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.

当我详细调试了Instagram code时,我发现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中删除结尾的两个字符#_时,它开始工作. 以下是我用来获取access_token-

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":“找不到或已使用匹配代码.","code":400,"error_type":"OAuthException"}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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