Facebook sso + Group only forums


  • just checked and realized even i am hving same issue, email is looks like 1176537305694066@facebook.com.

    My Log file shows some warning ..is that giving any clue ? I had posted this log in different thread yday.
    node app

    31/10 05:47 [5865] - info: Initializing NodeBB v0.8.2
    31/10 05:47 [5865] - info: [database] Checking database indices.
    31/10 05:47 [5865] - warn: [plugins/nodebb-plugin-sso-google] Hook filter:user.delete is deprecated, please use an alternative
    31/10 05:47 [5865] - warn: [plugins/nodebb-plugin-sso-facebook] Hook filter:user.delete is deprecated, please use an alternative

    31/10 05:47 [5865] - info: NodeBB Ready


  • @julian as per your suggestion here https://github.com/julianlam/nodebb-plugin-sso-facebook/issues/13

    I added console.log(profile); in library.js
    as per the link below
    https://github.com/julianlam/nodebb-plugin-sso-facebook/blob/e042fac332908b136030cdd3063a221cdb960d36/library.js#L61

    The output log give following output and hope this gives you some clue you are looking for 🙂

    478 { id: '1176537305694066',
    479 username: undefined,
    480 displayName: 'Gomathi Sankar Namasivayam',
    481 name:
    482 { familyName: undefined,
    483 givenName: undefined,
    484 middleName: undefined },
    485 gender: undefined,
    486 profileUrl: undefined,
    487 provider: 'facebook',
    488 _raw: '{"name":"Gomathi Sankar Namasivayam","id":"1176537305694066"}',
    489 _json: { name: 'Gomathi Sankar Namasivayam', id: '1176537305694066' } }

  • GNU/Linux Admin

    Hm, as you can see, Facebook is not returning the email in the output at all, so there's not much I can do from the plugin standpoint.

    There has to be some combination of settings that will allow the email to be saved...


  • I tried various options to test..this is my observation.

    1. I have used a facebook id to login into this forum, which has read the email id and correct email is is displayed in the profile.
    2. I have used the same facebook id in my own forum, there login is successful, but right email is not displayed (instead it is giving email like (102944453333@facebook.com).
    3. Obviously there is something wrong in my forum vs this forum, as same facebook id not returning email id for my forum , but it does return here.
    4. Surely i hv to update something in my forum to get the email id.,Any pointer on where to start and proceed to investigate further ?

  • Try to install the latest version of the facebook plugin. I think the email issue is fixed.


  • @Fan-Luo said:

    Try to install the latest version of the facebook plugin. I think the email issue is fixed.

    Nope..


  • It has to be something in facebook developer (application) settings


  • Well this is strrange. Instead of installing plugin via web interface, i used command line and version went to 1.1.14 from 1.0.5 and now everything is fine


  • @Veljko-Radovanovic said:

    https://github.com/julianlam/nodebb-plugin-sso-facebook#readme

    Yes, the 1.1.4 fixes the issue. Use npm install from CLI to install the latest plugin.


  • Now ive managed to get this error:

    11/11 04:38 [17046] - error: TypeError: Cannot call method 'trim' of undefined
    at Object.User.create (/var/www/html/forum/nodebb/src/user/create.js:17:33)
    at /var/www/html/forum/nodebb/node_modules/nodebb-plugin-sso-facebook/library.js:160:12
    at try_callback (/var/www/html/forum/nodebb/node_modules/redis/index.js:573:9)
    at RedisClient.return_reply (/var/www/html/forum/nodebb/node_modules/redis/index.js:661:13)
    at ReplyParser.<anonymous> (/var/www/html/forum/nodebb/node_modules/redis/index.js:309:14)
    at ReplyParser.emit (events.js:95:17)
    at ReplyParser.send_reply (/var/www/html/forum/nodebb/node_modules/redis/lib/parser/javascript.js:300:10)
    at ReplyParser.execute (/var/www/html/forum/nodebb/node_modules/redis/lib/parser/javascript.js:203:22)
    at RedisClient.on_data (/var/www/html/forum/nodebb/node_modules/redis/index.js:534:27)
    at Socket.<anonymous> (/var/www/html/forum/nodebb/node_modules/redis/index.js:91:14)
    [cluster] Child Process (17046) has exited (code: 1, signal: null)
    [cluster] Spinning up another process...
    11/11 04:38 [17061] - info: Time: Wed Nov 11 2015 04:38:27 GMT-0500 (EST)
    11/11 04:38 [17061] - info: Initializing NodeBB v0.9.0

    11/11 04:38 [17061] - warn: [plugins/load] The following plugins may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing. In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset -p PLUGINNAME to disable it.

    • nodebb-plugin-composer-default
    • nodebb-plugin-markdown
    • nodebb-plugin-mentions
    • nodebb-widget-essentials
    • nodebb-rewards-essentials
    • nodebb-plugin-soundpack-default
    • nodebb-plugin-spam-be-gone
    • nodebb-plugin-gravatar-extended
    • nodebb-plugin-sso-facebook
    • nodebb-plugin-youtube-lite
    • nodebb-theme-persona

    11/11 04:38 [17061] - info: [plugins/spam-be-gone] Settings loaded
    11/11 04:38 [17061] - info: NodeBB Ready
    11/11 04:38 [17061] - info: NodeBB is now listening on

Suggested Topics

| |