Skip to content

Commit

Permalink
[facebook-strategy] Added profileFields key to Passport's Facebook st…
Browse files Browse the repository at this point in the history
…rategy constructor, as seen in jaredhanson/passport-facebook#129 (comment). Fixes empty email issue on login.
  • Loading branch information
jfresco committed Aug 11, 2015
1 parent c246fdb commit 62b91b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/auth-facebook/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = function() {
clientID: config.auth.facebook.clientID,
clientSecret: config.auth.facebook.clientSecret,
callbackURL: utils.buildUrl(config) + '/auth/facebook/callback',
profileFields: config.auth.facebook.permissions,
enableProof: false
},
function(accessToken, refreshToken, profile, done) {
Expand Down

0 comments on commit 62b91b5

Please sign in to comment.