Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Facebook Login missing email scope.

Author
Message
JohnnyMeek
11
Years of Service
User Offline
Joined: 23rd Apr 2013
Location: Slovenia
Posted: 4th Sep 2016 09:23
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.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 7th Sep 2016 14:34
I've made a note of it, but it's not a high priority

Login to post a reply

Server time is: 2024-05-05 02:36:22
Your offset time is: 2024-05-05 02:36:22