You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After debugging, it turns out that it's the not the fault of omniauth-facebook. It's because omniauth-oauth2 overrides #callback_url so it loses the querystring.
I'm digging and trying to find solutions for several hours, but i got no luck. I hope I can have answer here.
I checked the gem 'omniauth', we can pass extra parameters like this:
/auth/facebook?listing_id=kh35887
And inside the callback phase, we can retrieve this parameter by calling
#params
orrequest.env['omniauth.params']
, https://github.com/intridea/omniauth/blob/fc304abe2b56cb6efeff87efdc50d120f4d8e1c0/lib/omniauth/strategy.rb#L225./auth/facebook/callback?listing_id=kh35887
I tried this with the gem
omniauth-twitter
, and it works as expected. However,omniauth-facebook
doesn't work with this extra parameters.The text was updated successfully, but these errors were encountered: