Skip to content

Commit

Permalink
Merge cf6f72e into 90a642b
Browse files Browse the repository at this point in the history
  • Loading branch information
leofisG committed Aug 3, 2017
2 parents 90a642b + cf6f72e commit 8f16261
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -44,7 +44,8 @@ complete authentication.
passport.use(new FacebookStrategy({
clientID: FACEBOOK_APP_ID,
clientSecret: FACEBOOK_APP_SECRET,
callbackURL: "http://localhost:3000/auth/facebook/callback"
callbackURL: "http://localhost:3000/auth/facebook/callback",
profileFields: ['id', 'email', 'gender', 'link', 'locale', 'name', 'timezone', 'updated_time', 'verified']// You will need to explicitly provide the profileFields to get the information you want from Facebook graph API v2.4
},
function(accessToken, refreshToken, profile, cb) {
User.findOrCreate({ facebookId: profile.id }, function (err, user) {
Expand Down

0 comments on commit 8f16261

Please sign in to comment.