I'm using Facebook to login my users and create accounts using the Pare server, everything works fine except being able to retrieve the correct user info to populate my database. I get their name and ID but not their email, which is important.
I've tracked it it down to the fact the Facebook login requires the scope to be set at the login phase:
https://developers.facebook.com/docs/reference/javascript/FB.login/v2.5
e.g.
FB.login(function(response) {
if (response.status === 'connected'){
FB.api('/me?fields=id,email,name', function(data) {
console.log( data.email ) // it will not be null
})
}, {scope: 'email'});
It would be great if this small change could be made for the next build
Thanks.