Skip to content

Commit

Permalink
pull first, last names from facebook profile
Browse files Browse the repository at this point in the history
  • Loading branch information
christinalcole committed Aug 30, 2017
1 parent af84183 commit 9b53cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/devise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
# Add a new OmniAuth provider. Check the wiki for more information on setting
# up on your models and hooks.
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
config.omniauth :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'], scope: "email,public_profile" #default scope for FB
config.omniauth :facebook, ENV['FACEBOOK_APP_ID'], ENV['FACEBOOK_APP_SECRET'], scope: "email", info_fields: 'first_name,last_name,email' #default scope for FB


# ==> Warden configuration
Expand Down

0 comments on commit 9b53cff

Please sign in to comment.