我有这个方法,我想收到一个人的电子邮件和发送电子邮件=未定义.
第一次尝试:
function testAPI() {
FB.login(function(response) {
if (response.authResponse) {
console.log('Welcome! Fetching your information.... ');
FB.api('/me', function(response) {
console.log('Good to see you, ' + response.email + '.');
alert('Good to see you, ' + response.email + '.');
});
} else {
console.log('User cancelled login or did not fully authorize.');
}
}, {scope:'email'});
Run Code Online (Sandbox Code Playgroud)
我正在搜索,我发现我必须使用{scope:image},如果我把它,不要告诉我警报