This commit is contained in:
Matteo Pagliazzi 2018-06-04 14:16:30 +02:00 committed by GitHub
parent 3e29b958e3
commit 93768e70c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ passport.deserializeUser((obj, done) => done(null, obj));
passport.use(new FacebookStrategy({
clientID: nconf.get('FACEBOOK_KEY'),
clientSecret: nconf.get('FACEBOOK_SECRET'),
profileFields: ['email'],
profileFields: ['id', 'email', 'displayName'],
// callbackURL: nconf.get("BASE_URL") + "/auth/facebook/callback"
}, (accessToken, refreshToken, profile, done) => done(null, profile)));