Twitter oauth_callback parameter being ignored!

Posted by Astrofaes on Stack Overflow See other posts from Stack Overflow or by Astrofaes
Published on 2010-05-30T22:08:28Z Indexed on 2010/05/30 22:12 UTC
Read the original article Hit count: 350

Filed under:
|
|
|

Hi guys,

I'm trying to get Twitter authentication working on my ASP.NET site. When you create the app on the Twitter website, you have to specify a callback URL, which for sake of argument, I have set to http://mydomain.com

I've read the oAuth 1.0a spec, and to override this callback URL with your own custom one you have to send the oauth_callback parameter in the request_token phase (url-encoded of course).

So my request URL looks like this:

http://twitter.com/oauth/request_token?oauth_callback_url=http%3A%2F%2Fmydomain.com%2Ftwittercallback

Supposedly, if all goes to plan, in your response data, you are supposed to receive a new parameter of oauth_callback_confirmed=true in addition to your token and token secret parameters.

However, my response comes through as: oauth_token=MYTOKEN&oauth_token_secret=MYTOKENSECRET

I know I haven't given you guys the greatest amount to go on, but I'm at my wits end as to why I am not receiving the oauth_callback_confirmed parameter. Without this, my application keeps defaulting back to the callback URL hard-coded on the Twitter website. Please if anyone could help me out, I will be eternally grateful!

Thanks, A.

© Stack Overflow or respective owner

Related posts about url

Related posts about twitter