Closed peterept closed 9 years ago
Figured it out, 2 things:
app/models/user.rb
...
devise ... :omniauth_providers => [:facebook, :facebook_access_token]
config/initializers/devise.rb
...
config.omniauth :facebook_access_token, FB_ID, FB_SECRET, {scope: 'public_profile,email', info_fields: 'email,name,verified'}
Be aware, Facebook users can be verified without an email now (eg: phone number)
Cheers!
I'm using devise + omniauth + omniauth-facebook + omniauth-facebook-access-token
When I try and call: