We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scope allow :
app.get('http://localhost/authentication/facebook', passport.authenticate('facebook', { scope: ['email', 'public_profile'] }));
Result:
{ id: '5900246411513451', username: undefined, displayName: 'John Wick', name: { familyName: 'Wick', givenName: 'John', middleName: undefined }, gender: undefined, profileUrl: undefined, }
Why without email return ????
email
The text was updated successfully, but these errors were encountered:
You have to tell the library which fields from the profile to fetch, using the profileFields option when you call the FacebookStrategy constructor:
profileFields
FacebookStrategy
new FacebookStrategy({ clientID, clientSecret, callbackURL, profileFields: ['id', 'email', 'name'], })
Sorry, something went wrong.
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?
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
No branches or pull requests
Scope allow :
Result:
Why without
email
return ????The text was updated successfully, but these errors were encountered: