File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -145,19 +145,25 @@ passport.use(
145
145
) ;
146
146
147
147
// https://github.com/jaredhanson/passport-facebook
148
+ // https://developers.facebook.com/docs/facebook-login/permissions/
148
149
passport . use (
149
150
new FacebookStrategy (
150
151
{
151
152
clientID : process . env . FACEBOOK_ID ,
152
153
clientSecret : process . env . FACEBOOK_SECRET ,
153
154
profileFields : [
155
+ 'id' ,
156
+ 'cover' ,
154
157
'name' ,
155
- 'email' ,
156
- 'picture' ,
158
+ 'age_range' ,
157
159
'link' ,
160
+ 'gender' ,
158
161
'locale' ,
162
+ 'picture' ,
159
163
'timezone' ,
164
+ 'updated_time' ,
160
165
'verified' ,
166
+ 'email' ,
161
167
] ,
162
168
callbackURL : '/login/facebook/return' ,
163
169
passReqToCallback : true ,
Original file line number Diff line number Diff line change @@ -19,8 +19,9 @@ const router = new Router();
19
19
// External login providers. Also see src/passport.js.
20
20
const loginProviders = [
21
21
{
22
+ // https://developers.facebook.com/docs/facebook-login/permissions/
22
23
provider : 'facebook' ,
23
- options : { scope : [ 'email ' , 'user_location ' ] } ,
24
+ options : { scope : [ 'public_profile ' , 'email ' ] } ,
24
25
} ,
25
26
{
26
27
provider : 'google' ,
You can’t perform that action at this time.
0 commit comments