Facebook SSO Plugin - Email Issue

Technical Support
  • 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';
                                }
    
  • Another quick update before I call it a day... the Google SSO plugin works fine.

  • 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.

  • @baris faced the same issue <randomno>@facebook.com get stored as email

  • @kps - FYI, have been off nodebb for the last three weeks. Will get back to it with the latest codebase and will verify. Can you let me know if you Facebook app is published or was it in demo / sandbox mode?

  • @shri said:

    @kps - FYI, have been off nodebb for the last three weeks. Will get back to it with the latest codebase and will verify. Can you let me know if you Facebook app is published or was it in demo / sandbox mode?

    It was in sandbox mode.

  • @kps - I suspect that is the issue. I don't have an active nodebb instance right now. In the middle of a few things. HOpefully resolve those issues and get back to nodebb over the weekend. 🙂

  • crazycellsC crazycells referenced this topic on


Suggested Topics