-
Notifications
You must be signed in to change notification settings - Fork 747
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
Cannot read property '0' of undefined #35
Comments
I'm having this same issue. All I've seen is something about putting brackets around the email in scope as such: Still didn't quite work for me though, unfortunately. |
i got these same error can u pls help me E:\easy-node-authentication-facebook\easy-node-authentication-facebook>node serv js-bson: Failed to load c++ bson extension, using pure JS version TypeError: Cannot read property '0' of undefined
on-facebook\node_modules\mongoose\lib\query.js:1153:30) |
You need to add in
Emails doesn't appear to be a default passed by facebook, so when you add |
Firstly, set your profileFields section.
Now, we need to pull these details wherever we configure our passport code.
|
@Janusz0 would not supplying the facebookAuth object directly not be the same thing here? passport.use(new FacebookStrategy(configAuth.facebookAuth); |
@WORMSS I guess you can do this way too. |
HI @Janusz0 , I'm having the same problem, my code is like
I'm getting |
I thought it's worth noting. You can sign up to Facebook with JUST a phone number, no email |
This jaredhanson/passport-facebook#189 (comment) worked for me. |
After signing in using facebook, this happens:
The text was updated successfully, but these errors were encountered: