mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-17 11:32:16 +00:00
fix(passport): use graph API v2.8
This commit is contained in:
parent
1001d48eb7
commit
cafabd93e1
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ passport.use(new FacebookStrategy({
|
|||
clientID: nconf.get('FACEBOOK_KEY'),
|
||||
clientSecret: nconf.get('FACEBOOK_SECRET'),
|
||||
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"
|
||||
}, (accessToken, refreshToken, profile, done) => done(null, profile)));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue