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"}
问题描述
我正在使用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屋!