我正在使用官方 phonegap 插件 https://github.com/phonegap/phonegap-facebook-plugin创建一个带有 facebook 登录的移动应用程序 问题是当我对应用程序进行身份验证时,它会返回没有身份验证响应的响应。
FB.login(function(response) {
alert(response.authResponse);
alert("login:"+JSON.stringify(response));
if (response.session) {
alert('logged in');
} else {
alert('not logged in');
}
},
{ scope: "email" });
其中响应是 {"id":"12345677876","first_name":"xxxxx"......
因此 "response.authResponse" 总是undefined。