Hi.

I have the same issue, but may i ask why you are performing a GET request
with a POST signature?
HTTP POST should be:

POST /oauth/request_token
<Headers>\r\n
\r\n
callback=..&nonce=&...

Not in the way you've shown us:
HTTP POST:
https://api.twitter.com/.../oauth_callback=..&;...


Secondly, have you checked your timestamps so it matches the twitter server?
Say you live in Sweden like i do, you need to compensate for the time
difference with -1 so it matches GMT.


Thirdly, are you URL encoding anything at all in the POST header?
I think the signature needs to be URL encoded.



This is what my Header and POST data looks like:
http://groups.google.com/group/twitter-development-talk/browse_thread/thread/40b41730d2144ca9




On Thu, Jun 30, 2011 at 12:19 AM, miloshes <blask...@gmail.com> wrote:

> Hi guys,
>
> I am new here, working on yet another twitter client for desktops.
> It's Adobe AIR desktop app written in AS3. And I have a problem with
> acquiring a request token.
>
> Signature base:
> POST&https%3A%2F%2Fapi.twitter.com <http://2fapi.twitter.com/>%2Foauth
> %2Frequest_token&oauth_callback=http%3A%2F%2Fgoogle.com
>
> %2F&oauth_consumer_key=b0..ww&oauth_nonce=84950&oauth_signature_method=HMAC-
> SHA1&oauth_timestamp=1309385887&oauth_version=1.0
>
> HTTP POST:
>
> https://api.twitter.com/oauth/request_token?oauth_callback=http://twitter.com&oauth_consumer_key=b0..ww&oauth_nonce=82384&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1309374642&oauth_version=1.0&oauth_signature=Cfx..og%
>
> Erro I am getting:
> Failed to validate oauth signature and token
>
> I am able to use pin code authorization but I don't want to use it for
> my app. So I hope there is a way how to pass oAuth authentication from
> desktop app using callback url.
>
> Could anyone help me please? It's killing me :(
>
> --
> Twitter developer documentation and resources: https://dev.twitter.com/doc
> API updates via Twitter: https://twitter.com/twitterapi
> Issues/Enhancements Tracker:
> https://code.google.com/p/twitter-api/issues/list
> Change your membership to this group:
> https://groups.google.com/forum/#!forum/twitter-development-talk
>

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

Reply via email to