Open bombkiml opened 1 year ago
You have to tell the library which fields from the profile to fetch, using the profileFields
option when you call the FacebookStrategy
constructor:
new FacebookStrategy({
clientID,
clientSecret,
callbackURL,
profileFields: ['id', 'email', 'name'],
})
I am also trying the same thing but it doesn't work even with the 'email' field inside the 'profileFields'
Hey, did someone come with solution?
Hey, did someone come with solution?
Hi bro, I can fix by add Permissions. Must allow Permissions facebook profile fields : https://developers.facebook.com/docs/graph-api/reference/v13.0/user#readperms
new FacebookStrategy({
clientID,
clientSecret,
callbackURL,
profileFields: ['id', 'email', 'name'],
})
Scope allow :
Result:
Why without
email
return ????