I have integrated FB sdk for customer login and not able to get phone number in response. Here is my code
FB.api('/me',
{fields: "id,email,first_name,gender,name,last_name,token_for_business"},
function(response) {
});
With that above code, I am getting all information expect phone number. I have passed extra parameter mobile_phone then getting undefined response. Here is code
FB.api('/me',
{fields: "id,email,first_name,gender,name,last_name,token_for_business,mobile_phone"},
function(response) {
console.log(response.mobile_phone);
});
I have tried with parameter "user_mobile_phone" also still getting undefined response only
Please help me to resolve this, thanks in advance.