Skip to content

Specify field name like email to Facebook Oauth settings(profileFields) #1093

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

Closed
wants to merge 1 commit into from
Closed

Specify field name like email to Facebook Oauth settings(profileFields) #1093

wants to merge 1 commit into from

Conversation

yoshiokatsuneo
Copy link
Contributor

On Facebook Graph API v2.4, only "id" or "name" fields is retrived by default,

So, Facebook login caused error message:

/app/server/auth/facebook/passport.js:21
^
email: profile.emails[0].value,

TypeError: Cannot read property '0' of undefined

On Facebook Graph API v2.4, only "id" or "name" fields is retrived by default,
So, Facebook login caused error message:
===============================================
/app/server/auth/facebook/passport.js:21
                                 ^
            email: profile.emails[0].value,
TypeError: Cannot read property '0' of undefined
===============================================
@yoshiokatsuneo
Copy link
Contributor Author

Reference: Introducing Graph API v2.4
(https://developers.facebook.com/blog/post/2015/07/08/graph-api-v2.4/)

Fewer default fields for faster performance: To help improve performance on mobile network connections, we've reduced the number of fields that the API returns by default. You should now use the ?fields=field1,field2 syntax to declare all the fields you want the API to return.

@Awk34
Copy link
Member

Awk34 commented Jul 22, 2015

Already fixed by #1062

@Awk34 Awk34 closed this Jul 22, 2015
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

Successfully merging this pull request may close these issues.

2 participants