Instagram oauth-找不到错误400匹配代码 [英] Instagram oauth - error 400 matching code not found
问题描述
问题开始于两天前,影响了我们约70%的用户. 此错误与IP,库或服务器配置无关.
Problem started two days ago and affected about 70% of our users. This error is not depends on IP, libraries or server configuration.
Instagram忽略了我的请求,Facebook也忽略了.
Instagram ignores my requests, Facebook do too.
我试图重置客户端机密,更改IP和区域,所以没有任何帮助.
I've tried to reset client secret, change IP and region, so nothing helped.
其他用户报告了相同的问题: https://news.ycombinator.com/item?id = 13178789
Other users reports same problem: https://news.ycombinator.com/item?id=13178789
也许来自Instagram/Facebook的某人阅读了StackOverflow,可以提供一些建议或澄清这种情况吗?
Maybe someone from Instagram/Facebook read StackOverflow and can give some advise or clarify this situation?
推荐答案
Instagram api似乎已通过302重定向将api.instagram.com
移到了www.instagram.com
.
It appears that Instagram api has move api.instagram.com
to www.instagram.com
with a 302 redirect.
如果您使用的是omniauth-instagram
gem,则可以使用以下修复程序:
If you are using omniauth-instagram
gem, you can use this fix:
#config/initializers/omniauth_instagram_api_path.rb
module OmniAuth
module Strategies
class Instagram
option :client_options, {
:site => 'https://www.instagram.com',
:authorize_url => 'https://www.instagram.com/oauth/authorize',
:token_url => 'https://www.instagram.com/oauth/access_token'
}
end
end
end
目的是将api.instagram.com
替换为www.instagram.com
.
我设法使登台和生产应用程序正常工作.
I managed to make my staging and production application work.
这篇关于Instagram oauth-找不到错误400匹配代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!