Ruby on Rails Devise Oauth-facebook OmniAuth::Strategies::OAuth2::CallbackError

女生的网名这么多〃 提交于 2019-12-03 14:49:57
selaromi

I added this to my app_name/config/initializers/devise.rb

{ provider_ignores_state: true }

so it ended up being

  require "omniauth-facebook"
  config.omniauth :facebook, ENV["FACEBOOK_APP_ID"], ENV['FACEBOOK_SECRET'], provider_ignores_state: true

Hope this helps someone else!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!