fix(passport): use graph API v2.8

This commit is contained in:
Sabe Jones
2018-10-04 18:09:58 -05:00
parent 1001d48eb7
commit cafabd93e1

View File

@@ -20,6 +20,9 @@ passport.use(new FacebookStrategy({
clientID: nconf.get('FACEBOOK_KEY'), clientID: nconf.get('FACEBOOK_KEY'),
clientSecret: nconf.get('FACEBOOK_SECRET'), clientSecret: nconf.get('FACEBOOK_SECRET'),
profileFields: ['id', 'email', 'displayName'], profileFields: ['id', 'email', 'displayName'],
profileURL: 'https://graph.facebook.com/v2.8/me',
authorizationURL: 'https://www.facebook.com/v2.8/dialog/oauth',
tokenURL: 'https://graph.facebook.com/v2.8/oauth/access_token',
// callbackURL: nconf.get("BASE_URL") + "/auth/facebook/callback" // callbackURL: nconf.get("BASE_URL") + "/auth/facebook/callback"
}, (accessToken, refreshToken, profile, done) => done(null, profile))); }, (accessToken, refreshToken, profile, done) => done(null, profile)));