function checkLoginState() { FB.getLoginStatus(function(response) { statusChangeCallback(response); }); }