加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – Omniauth facebook如何在Facebook应用程序仪表

发布时间:2020-12-17 02:25:04 所属栏目:百科 来源:网络整理
导读:我知道这个问题已被多次询问,但没有一个对我有帮助. 我正在尝试使用facebook登录我的网站,但收到错误: {"error":{"message":"Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dial
我知道这个问题已被多次询问,但没有一个对我有帮助.

我正在尝试使用facebook登录我的网站,但收到错误:

{"error":{"message":"Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request","type":"OAuthException","code":100,"fbtrace_id":"DV9+XV2aZn5"}}

我在facebook应用程序控制台中有以下配置:

enter image description here


enter image description here

似乎我错过了设置URL的东西,但无法弄清楚是什么.

更新

应用程序/模型/ customer.rb

devise :omniauthable,omniauth_providers: [:facebook]

解决方法

似乎是omniauth-facebook gem中的一个bug
请参阅此主题以获取此错误
https://github.com/mkdynamic/omniauth-facebook/issues/220
这也是修复
https://github.com/gioblu/omniauth-facebook/commit/eff97bfae32f72821cbccf0b48b78351e41eb585

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读