最終更新:2013-12-11 (水) 10:47:49 (3783d)  

FB.login
Top / FB.login

Calling FB.login prompts the user to authenticate your application using the OAuth Dialog.

https://developers.facebook.com/docs/reference/javascript/FB.login/

FB.login(callback, options)

option

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 + '.');
     });
   } else {
     console.log('User cancelled login or did not fully authorize.');
   }
 });

関連