2011-10-13 2 views

답변

0

그럼 당신이 사용할 수있는 FB.login() : 아이러니하게도

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.name + '.'); 
     FB.logout(function(response) { 
     console.log('Logged out.'); 
     }); 
    }); 
    } else { 
    console.log('User cancelled login or did not fully authorize.'); 
    } 
}, {scope: 'email'}); 

, 페이스 북은 단지 posted a tutorial이 어제와 관련. 또한 나는이 동안에 대해 tutorial을 작성했다.

관련 문제