Skip to content
New issue

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

expose fields to be returned #68

Open
ianomad opened this issue Feb 12, 2017 · 4 comments
Open

expose fields to be returned #68

ianomad opened this issue Feb 12, 2017 · 4 comments

Comments

@ianomad
Copy link

ianomad commented Feb 12, 2017

expose fields param like in:
https://www.npmjs.com/package/passport-facebook

@stubbies
Copy link

You can use the option profileFields to include the fields you want.

{
  clientID: '',
  clientSecret: '',
  profileFields: ['id', 'displayName', 'name', 'emails', 'gender'],
}

@anhkhoi
Copy link

anhkhoi commented Jan 18, 2018

I received an empty field for email, although I published my email
emails: [ { value: '' } ]

@martinnov92
Copy link

Hello, I am having the same issue, emails is empty emails: [{ value: '' }] 🤕

@attacomsian
Copy link

attacomsian commented Jan 23, 2019

@martinnov92 I think the issue is with emails attribute. It should be email instead of emails according to Facebook graph API reference.

Passport Facebook also uses email attribute name.

The correct configuration is the following:

{
  clientID: '',
  clientSecret: '',
  profileFields: ['id', 'displayName', 'name', 'email', 'gender'],
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants