Issue
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
Solution
then how can I get mobile_phone?
You can’t.
Facebook does not let normal 3rd-party apps access a user’s mobile number via Graph API.
(You might have seen stuff like the login dialog from Uber, they show the phone number there. But that is because they have some sort of special deal with Facebook that enables them to do this.)
Answered By - 04FS Answer Checked By - Senaida (PHPFixing Volunteer)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.