Twitter login status check


#1

Is there anyway to check twitter login status like FB.getLoginStatus(response)? I want to hide the pop-up window if the user already logged. Right now the user has to click the button and every time the window will pop up whether the user logged or not:

$('#twitter').change(function() {
   if($(this).prop('checked')){
       hello('twitter').login(function(e){
           if(e.error){
               $('#twitter').prop('checked',false);
           }else{
               var twitter_oauth_token = hello('twitter').getAuthResponse().oauth_token;
               var twitter_secret = hello('twitter').getAuthResponse().oauth_token_secret;
           }

       });
   }else {

   }

});