Could not application with OAuth


Anyone who can help me? Crazy now…

the authtoken is valid, because i can delete the tweet with it.


Date: Thu, 15 Sep 2011 21:56:01 GMT Server: hi Status: 401 Unauthorized WWW-Authenticate: OAuth realm=“” X-Runtime: 0.01078 Content-Type: application/xml; charset=utf-8 Content-Length: 485 Cache-Control: no-cache, max-age=1800 Set-Cookie: k=; path=/; expires=Thu, 22-Sep-11 21:56:01 GMT; Set-Cookie: guest_id=v1%3A131612376137275220;; path=/; expires=Sun, 15 Sep 2013 09:56:01 GMT Set-Cookie: _twitter_sess=BAh7CDoPY3JlYXRlZF9hdGwrCOXaFm8yAToHaWQiJWExZWIxZDBhNTYzYmM1%250AOTdlNzA0ODgyYWY5NGRiMzNlIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVy%250AOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA–03c78ca205512d0fdf67eb1b92030a1d9961a5d7;; path=/; HttpOnly Expires: Thu, 15 Sep 2011 22:26:01 GMT Vary: Accept-Encoding Keep-Alive: timeout=15, max=99 Connection: Keep-Alive

Could not authenticate with OAuth. /1/statuses/update.xml?oauth_consumer_key=2ObSAX6kTycKWJIoNA0h7g&oauth_nonce=1370102830&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1316123978&oauth_token=369022963-RGVctsIcknF8azqO2OsbzSCCyLPAoH4qMyTUMwSQ&oauth_version=1.0&status=12342342343242011%2F09%2F15%202%3A59%3A38%20pm&oauth_signature=Foz3Jj278D4jdwZOo2Sa5SAmN3I%3D


What language are you programming your application with. You need to sign all requests for them to work, as an additional note its not a good idea to expose your consumer key.

You can’t just go to the URL to send a post via oauth if thats what your trying to do.


Hi Wuup,

I’m working with classic Asp for current project.
Can you please explain what is “sign all requests for them to work” ? I have provided to the API all parameters .
It’s ok to expose the customer key, because it is just a testing customer key for my self.
Can you please give me more sugguestions?


FYI, the authToken can be used to delete the Status, but it does’t work to post the Status . So I don’t think it is an invalid authToken. And I really don’t know what’s wrong with it.


Can i have my account verified please thanks for help much appricitive.


Hi Kevin,

You just need to write a bit of extra code to utilise the Twitter API 1.1 authentication. Feel free to use my ASPTwitter class as a starting point. The code already does OAuth authentication and gets tweets, and works with Twitter API 1.1. Just copy the token method and change the API URL and post data:


Hi – see my reply below. :slight_smile: