From 62b91b5ab4d359c6f9077ce2e54e55d1d36ceba0 Mon Sep 17 00:00:00 2001 From: Jose Fresco Date: Tue, 11 Aug 2015 16:04:13 -0300 Subject: [PATCH] [facebook-strategy] Added profileFields key to Passport's Facebook strategy constructor, as seen in https://github.com/jaredhanson/passport-facebook/issues/129#issuecomment-124039674. Fixes empty email issue on login. --- lib/auth-facebook/strategy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/auth-facebook/strategy.js b/lib/auth-facebook/strategy.js index 86fdf1e8ae..1ce62cccc1 100644 --- a/lib/auth-facebook/strategy.js +++ b/lib/auth-facebook/strategy.js @@ -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) {