Facebook sso + Group only forums
-
Hello, I have recently start using NodeBB and I am really impressed, but as every newbie i have some issues.
First, I am using fb sso (https://github.com/julianlam/nodebb-plugin-sso-facebook#readme), it creates acc just like here, but user email is completely wrong, it is always something like [email protected].
Second, I am trying to allow groups to have private forum. On example someone creates private group, is it possible to allow them to create own threads/ posts inside that group?
Any help is welcome Thanks!
-
To come on the part about the groups. There isn't a automated way of doing that. However, you can make the permission s of a category so that the users of the group can see, post & read that category. Assigning users to moderate there private can also be done by manually adding there names with the moderation permission
-
thanks! that will do it.
Still need help with fb thingy -
@Veljko-Radovanovic http://stackoverflow.com/questions/17532476/facebook-email-field-return-null-even-if-the-email-permission-is-set-and-acce
Is your email confirmed in Facebook?
-
Yes my email is confirmed in FB.
I've seen that issue on git but no solution yet -
I've tried with 3 different FB accounts, same thing. hmm
-
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:
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.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