I\'m working on logging in a site via existing facebook
account. So I registered a facebook application and stored api and secret
For me, I needed to add provider_ignores_state: true
to my Omniauth config:
config.omniauth :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'], {
strategy_class: OmniAuth::Strategies::Facebook,
provider_ignores_state: true
}
This is on omniauth-facebook
gem version 1.6.0.
There is more info also at https://github.com/mkdynamic/omniauth-facebook/issues/73