2010-09-23 58 views
3

我試圖找到一種解決方法,以便我不必每次按下允許按鈕時使用Twitter API。Twitter應用程序使用C#使用OAuth令牌

if (Request["oauth_token"] == null) 
     { 
      //Redirect the user to Twitter for authorization. 
      //Using oauth_callback for local testing. 
      oAuth.CallBackUrl = "http://localhost"; 
      Response.Redirect(oAuth.AuthorizationLinkGet()); 
     } 

在代碼示例上面,我只是得到一個OAuth憑證但Twitter要我確認我要允許訪問。有沒有解決方法,以便我不必接受?

回答

2

恐怕允許步驟已經完全不在您的手中。讓網站代表用戶授權令牌請求可能是惡意的。

相關問題