I'm currently failing with " Failed to validate oauth signature and
token "

IsServiceError = true

IsTwitterError = true

I'm currently sending this

POST https://api.twitter.com/oauth/request_token HTTP/1.1Accept: */
*Accept-Language: en-CAReferer: 
file:///C:/tfs_local/RC/RC.SL/Bin/Debug/RC.SL.xapAccept-Encoding:
identityX-Twitter-Method: GETX-Twitter-Auth: OAuth
oauth_consumer_key="xXxxXv7RG2INO7AcVwBpw",oauth_nonce="c41e1qpb5mu7o7ij",oauth_timestamp="1293808207",oauth_signature_method="HMAC-
SHA1",oauth_signature="915NI%2FM
%2FUbHJX0XGaafB21XsL44%3D",oauth_version="1.0"User-Agent: Mozilla/4.0
(compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET
CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC
6.0; MDDR; .NET4.0C; .NET4.0E; Zune 4.7)Host: api.twitter.comContent-
Length: 0Connection: Keep-AliveCache-Control: no-cache

and i'm getting this :

HTTP/1.0 401 UnauthorizedDate: Fri, 31 Dec 2010 15:10:09 GMTServer:
hiStatus: 401 UnauthorizedX-Transaction: 1293808209-57742-33321Last-
Modified: Fri, 31 Dec 2010 15:10:09 GMTX-Runtime: 0.01601Content-Type:
text/html; charset=utf-8Content-Length: 44Pragma: no-cacheX-Revision:
DEVExpires: Tue, 31 Mar 1981 05:00:00 GMTCache-Control: no-cache, no-
store, must-revalidate, pre-check=0, post-check=0Set-Cookie:
k=69.70.165.106.1293808209374945; path=/; expires=Fri, 07-Jan-11
15:10:09 GMT; domain=.twitter.comSet-Cookie:
guest_id=129380820938467484; path=/; expires=Sun, 30 Jan 2011 15:10:09
GMTSet-Cookie: original_referer=fBxhJyK4Ko3P5Ehw8c9Ev9Nj4fLa%2B2svZe1o
%2FjCwuUmTu2%2F8MHhvKQvZtx1bG7bcvX4l3TeZPdlTRhQrRyNDA
%2BdJD8P8ILLRr35DNIR8tTh65hqQTUSW9A%3D%3D; path=/Set-Cookie:
_twitter_sess=BAh7CDoHaWQiJTRiYmZlMzc4Y2FmN2E5NTY5NjdmZWUwYTIzOGMxYzU2Igpm
%250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG
%250AOgpAdXNlZHsAOg9jcmVhdGVkX2F0bCsI8Y36PC0B--
f7d641c9ca7ee9781b303b71da26659244d8c752; domain=.twitter.com; path=/
Vary: Accept-EncodingConnection: close
Failed to validate oauth signature and token

My current code:

string ConsumerKey = @"xXxxXv7RG2INO7AcVwBpw";
string ConsumerSecret = @"XxXxxXxXLmfOqscTUGBvrcy00d2sezPlwDsfjQLFw";

 var info = new TwitterClientInfo
            {
                ClientName = "my app",
                ClientVersion = "1.0",
                ConsumerKey = ConsumerKey,
                ConsumerSecret = ConsumerSecret
            };

            FluentTwitter.SetClientInfo(info);

 FluentTwitter.CreateRequest()
                             .Configuration.UseHttps()
                             .Authentication.GetRequestToken(ConsumerKey,
ConsumerSecret)
                             .CallbackTo((r, s, x) =>
                             {
                                 int i = 0; //setting my break point
here to see the results
                             }).BeginRequest();

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to