These are chat archives for waterlock/waterlock

25th
Oct 2015
Araby Alhomsi
@arabyalhomsi
Oct 25 2015 11:43
Hello World
Is anyone here ?
Wayne Douglas
@wayne-o
Oct 25 2015 11:55
Sup
I'm out for lunch with the family but can maybe help :)
Ahmed Ali Taha
@a0ali0taha
Oct 25 2015 13:26
when I used watelock-facebook-auth I cannot retrieve facebook user info like first name , the field map in config does not have effect
Araby Alhomsi
@arabyalhomsi
Oct 25 2015 13:28
How about sending me a sandwhich ? :)
My problem has been solved, I was searching for a way to redirect the user after log in with Facebook, and I have not find anything in the documentation, but finally I found the solution in a tutorial on the web.
The solution:
in the Waterlock config file config/waterlock.js there is an object named postActions
by it you can handle login and logout events.
Thanks anyway :)
Wayne Douglas
@wayne-o
Oct 25 2015 13:30
Can you confirm you're requesting with the right scopes?
This works formme
Ahmed Ali Taha
@a0ali0taha
Oct 25 2015 13:38

I tested it on facebook graph api , Also I noticed that this code
< var url = this._graphAPIURL + uri + '?' + this.toQuery(this.accessToken);>
waterlock-facebook-auth/lib/fboauth2.js line 136

that send to facebook does not include field map, so t it return only with id and email which is the defaults .