最終更新:2013-12-11 (水) 10:47:49 (3760d)
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
- scope - Facebook/パーミッション
例
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.'); } });