Twitter API is not respecting my callback_url parameter?

You specify the oauth_callback value when you get a request token as specified in OAuth 1.0a. In 1.0 it you could pass it along with with the user when they go to twitter.com but was changed for security reasons. You can read more about it in the oauth/request_token docs .

Up vote 1 down vote favorite share g+ share fb share tw.

I've read all the threads about simiular issues on SO and elsewhere, and none of them have solved my problem. I'm using Twython as a wrapper around the API. I've tried setting oauth_callback EVERYWHERE.

Using the internal mechanism in Tython (which is done by setting callback_url on instantiation), by manually modifying the auth_url and appending the argument by before redirecting the user, etc. I've tried deleting and recreating both new twitter apps and new twitter accounts, to no avail. Whenever I redirect the client to twitter, the correct oauth_callback is ALWAYS visible in the url along with the oauth_token, but the api always ignores this argument and overrides it with the url in the settings of my twitter app (both are under the same domain). I have tried figuring this out for several hours and I'm at a dead end.

I've seen this work before and I've done it plenty of times, so I don't know what could possible be going wrong. It's strange-- even if I set the callback to 'oob', which ought to trigger the PIN workflow rather than a callback, this argument is EVEN THEN ignored. Any ideas why?

Twitter oauth twitter-api twitter-oauth twython link|improve this question asked May 15 '11 at 18:29D-Nice76131026 72% accept rate.

You specify the oauth_callback value when you get a request token as specified in OAuth 1.0a. In 1.0 it you could pass it along with with the user when they go to twitter.com but was changed for security reasons. You can read more about it in the /oauth/request_token docs.

I am using an updated version of Twython for authentication. The object is instantiated with callback_url = {myURL}, and as far as I can tell, the library is handling everything properly. Github.com/ryanmcgrath/twython/blob/master/twython/twython.py – D-Nice May 17 '11 at 6:10 I don't know enough Python to know if twython is implementing oauth_callback properly but this line reads to me like it doesn't support OAuth 1.0a callbacks.

I can confirm 100% that Twitter does support dynamic callbacks and if it isn't working either the lib doesn't support it or you are not calling the lib correctly. – abraham May 17 '11 at 6:17 ahhh good point, don't know how I missed that. Thats exactly what I needed to know.

Thanks. – D-Nice May 17 '11 at 7:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions