Skip to content

Commit

Permalink
Merge pull request #704 from anasayubi/master
Browse files Browse the repository at this point in the history
add gender field to facebook strategy
  • Loading branch information
sahat authored Jun 18, 2017
2 parents 5111e22 + 23bd4c5 commit 68b602e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ passport.use(new FacebookStrategy({
clientID: process.env.FACEBOOK_ID,
clientSecret: process.env.FACEBOOK_SECRET,
callbackURL: '/auth/facebook/callback',
profileFields: ['name', 'email', 'link', 'locale', 'timezone'],
profileFields: ['name', 'email', 'link', 'locale', 'timezone', 'gender'],
passReqToCallback: true
}, (req, accessToken, refreshToken, profile, done) => {
if (req.user) {
Expand Down

0 comments on commit 68b602e

Please sign in to comment.