Facebook SSO Plugin - Email Issue
-
Tried to sign up using the sso-facebook plugin (installed from the admin control panel).
Restarted nodebb and it seems to work.
Question: it gives me a [email protected] email address and not my real email address. Needless to say that the verification email does not end up anywhere in my inbox.
Is this as intended and do I have a problem with my facebook profile permissions?
Or is this an issue addressed previously? Cannot seem to find any posts related to this.
-
FYI .. this ends up showing that profile.emails is "undefined" in library.js
I am on the master branch (three days old).
}, function(accessToken, refreshToken, profile, done) { var email; console.log(profile.emails); if (Array.isArray(profile.emails) && profile.emails.length) { email = profile.emails[0].value; } else { email = (profile.username ? profile.username : profile.id) + '@facebook.com'; }
-
The random number is your facebook user id. Looks like the plugin code tries to grab an email then tries to use your facebook username and fallsback to fb id as a last option.
Not sure why emails would be empty if you have an email in your facebook profile though. Also keep in mind you can change your email after you register and resend the verification email.
-
@baris - will look at this and try and duplicate in php to figure out if this is a facebook platform issue or a issue with passport or the NodeBB plugin. And yes, that is indeed the facebook user id that I see. No clue why the emails are null on a couple of different accounts I have tested with.
-
-