Facebook sso + Group only forums
-
As reported here:
https://developers.facebook.com/bugs/298946933534016Some possible reasons:
No Email address on account
No confirmed email address on account
No verified email address on account
User entered a security checkpoint which required them to reconfirm their email address and they have not yet done so
Users's email address is unreachableNo clue what the difference between "confirmed" and "verified" is
Edit: Added some debug steps to the issue, if you could try it out and let me know, that'd help!
-
just checked and realized even i am hving same issue, email is looks like [email protected].
My Log file shows some warning ..is that giving any clue ? I had posted this log in different thread yday.
node app31/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] Hookfilter:user.delete
is deprecated, please use an alternative
31/10 05:47 [5865] - warn: [plugins/nodebb-plugin-sso-facebook] Hookfilter: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#L61The 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' } } -
I tried various options to test..this is my observation.
- 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.
- 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 ([email protected]).
- 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.
- 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 ?
-
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:
GitHub - julianlam/nodebb-plugin-sso-facebook: Single Sign-On Plugin for NodeBB
Single Sign-On Plugin for NodeBB. Contribute to julianlam/nodebb-plugin-sso-facebook development by creating an account on GitHub.
GitHub (github.com)
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.011/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