简体   繁体   English

Omniauth-facebook redirect_uri错误

[英]Omniauth-facebook redirect_uri error

I am making a website login with devise (for regular login) and omniauth-facebook for facebook login, and the regular login is working perfectly except the omniauth. 我正在使用devise(用于常规登录)和omniauth-facebook(用于Facebook登录)进行网站登录,并且除omniauth之外,常规登录均正常运行。 I followed https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview this doc. 我遵循了https://github.com/plataformatec/devise/wiki/OmniAuth:-概述此文档。 And the Error I get from the response were: 我从响应中得到的错误是:

Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request","type":"OAuthException","code":100 请确保您的redirect_uri与您在OAuth对话框请求中使用的redirect_uri相同“,” type“:” OAuthException“,” code“:100

And I searched around and found that there is a pull request that fixes this problem..? 我四处搜寻,发现有一个拉动请求可以解决此问题。 https://github.com/mkdynamic/omniauth-facebook/issues/220 Does anyone know how to fix it while the pull request get merged into master? https://github.com/mkdynamic/omniauth-facebook/issues/220在拉取请求合并到主请求时,有人知道如何修复它吗?

You can point to a different source for the omniauth-facebook gem in your Gemfile like this: 您可以像这样在Gemfile中指向omniauth-facebook gem的其他来源:

gem "omniauth-facebook", git: "https://github.com/gioblu/omniauth-facebook"

It will use the one with the patch in it. 它将使用带有补丁的那个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM