我正在使用TweetSharp Api,並且我有一些關於service.GetRequestToken()的問題。TweetSharp GetRequestToken該頁面的請求令牌無效
這裏是我的代碼: -
TwitterService service = new TwitterService("######", "######");
OAuthRequestToken requestToken = service.GetRequestToken();
Uri uri = service.GetAuthorizationUri(requestToken);
Process.Start(uri.ToString());
的問題是,當我重定向到Twitter的授權窗口來這樣的信息: -
Whoa there!
The request token for this page is invalid. It may have already been used, or expired because it is too old. Please go back to the site or application that sent you here and try again; it was probably just a mistake.
URI是這樣的:
https://api.twitter.com/oauth/authorize?oauth_token=?
有幫助嗎?
在此先感謝。
是的,我確定我做到了。 – user2728312
好的。你是否在應用程序設置中提供了回調URL?當我不提供這些信息時,我能夠重現您的問題。有可能與此[線程]重複(http://stackoverflow.com/questions/6333864/tweetsharp-authorization-renders-no-oauth-token?rq=1) –
我檢查了我的回調網址,我寫了正確的回調網址然後解決了我的問題。謝謝@MiKaDo_O – daylight