I am trying to work facebook login with javascript but there are some issue faces. If facebook user register with email id then it gets email id but when user register with mobile phone then how can I get mobile_phone?
FB.api('/me', 'GET', {fields: 'email,name,id'},function(response) {
console.log(response);
var id = response.id;
var name = response.name;
var email = response.email;
}, {scope: 'email',return_scopes: true});
here is my code. Please help me on this. thanks