不允许使用Instagram api oauth 405
我正在尝试将instagram api与邮递员一起使用 我做了一个帖子请求: 结果是:不允许使用405方法不允许使用Instagram api oauth 405,instagram,instagram-api,Instagram,Instagram Api,我正在尝试将instagram api与邮递员一起使用 我做了一个帖子请求: 结果是:不允许使用405方法 我能为正确的回答做些什么?据我所知,这是不正确的。我们使用POST to this endpoint的生产应用程序在大约15分钟前刚刚开始崩溃。我试着发了一封信,但没有用。响应中的'Allow'标题确实是POST,因此我认为这是我们打算做的,但似乎存在问题。这是因为302重定向来自于点击“api.instagram.com” 您应该使用以下URL: /** * {@inheritdoc
我能为正确的回答做些什么?据我所知,这是不正确的。我们使用POST to this endpoint的生产应用程序在大约15分钟前刚刚开始崩溃。我试着发了一封信,但没有用。响应中的'Allow'标题确实是POST,因此我认为这是我们打算做的,但似乎存在问题。这是因为302重定向来自于点击“api.instagram.com” 您应该使用以下URL:
/**
* {@inheritdoc}
*/
protected function getAuthUrl($state)
{
return $this->buildAuthUrlFromBase(
'https://instagram.com/oauth/authorize', $state
);
}
/**
* {@inheritdoc}
*/
protected function getTokenUrl()
{
return 'https://instagram.com/oauth/access_token';
}
代码取自为Laravel覆盖我的Instagram社交网站插件。(socialiteproviders.github.io/providers/instagram/)出现此问题,原因是从api.instagram.com重定向到instagram.com。我们删除了url开头的“api”,它又开始工作了。您尝试哪个端点可能无关紧要 这会让你改变方向 或
端点只允许您进行POST请求,但由于某些原因,它不能正常工作。我有类似的问题,我用了很长一段时间的方法后,现在它也不工作。这看起来像是Instagram API的问题。现在似乎工作正常。很可能是Instagram内部的临时问题。Instagram deleveloper的博客没有任何报道。我在使用
Django==1.7.8
和Django allauth==0.24.1
时遇到了这个问题。我通过更改access\u-token\u-url
和authorize\u-url
以使用api.instagram.com
子域,而不仅仅是instagram.com
我们的生产应用程序instagram auth也刚刚开始失败。这似乎是instagram的问题,即使尝试使用API控制台进行身份验证也会失败。。。这也开始发生在我的多个Instagram应用程序上。目前还没有确认,但我认为Instagram可能存在API问题。18.00之后我也遇到了同样的问题。也许人们仍然应该被建议遵循此线程中的解决方案,以防止将来发生事故。
/**
* {@inheritdoc}
*/
protected function getAuthUrl($state)
{
return $this->buildAuthUrlFromBase(
'https://instagram.com/oauth/authorize', $state
);
}
/**
* {@inheritdoc}
*/
protected function getTokenUrl()
{
return 'https://instagram.com/oauth/access_token';
}