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