我已经集成了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”也只是得到了未定义的响应
请提前帮助我解决这个问题。
没有办法获取电话号码,那些电话权限不存在。
还有其他线索,例如:Facebook API, Phone Numbers