2017-07-26 408 views
0

是否有無法檢查twitter登錄狀態,如FB.getLoginStatus(響應)?如果用戶已經登錄,我想隱藏彈出窗口。此時用戶必須單擊該按鈕,並且無論用戶是否登錄,每次都會彈出窗口:Twitter登錄狀態檢查

$('#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 { 

     } 
}); 

回答

-1

尋找相同。我記得幾年前在測試映像緩存時做了這件事,但我確信現在已經很久沒有發現黑客了。我將不得不檢查一些舊代碼。如果我能想到我使用它的項目。

+0

這實在是無法回答。如果您發現代碼片斷或記住過程的關鍵點,請考慮重新訪問。 –

+0

感謝您的提示。我很高興你能爲一個陳舊的話題添加實質內容。 –