サンプルコードがあります:
window.fbAsyncInit = function() {
FB.init({appId: appId, status: true, cookie: true, xfbml: true});
// Additional initialization code such as adding Event Listeners goes here
FB.getLoginStatus(function(response) {
if (response.status === 'connected') {
getFlag(1);
} else if (response.status === 'not_authorized') {
getFlag(2);
} else {
getFlag(3);
}
});
};
var f = function getFlag(flag){};
alert(f);
結果は a function getFlag(flag) {}
, もし = 1 がまさに, この値を取得する方法