我已经集成了FB sdk用于客户登录,但无法获得电话号码作为响应。 这是我的代码
FB.api('/me',
{fields: "id,email,first_name,gender,name,last_name,token_for_business"},
function(response) {
});
使用上面的代码,我得到所有信息的电话号码。我已经通过额外的参数 mobile_phone 然后获得未定义的响应。 这是代码
FB.api('/me',
{fields: "id,email,first_name,gender,name,last_name,token_for_business,mobile_phone"},
function(response) {
console.log(response.mobile_phone);
});
我已尝试使用参数“user_mobile_phone”,但仍然只获得未定义的响应
请提前帮助我解决此问题。