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

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.');
   }
 });

関連