When you edit your app settings at Twitter.com, you can asked for a return url, but you can set it to localhost/return. Can you?
I think this is useful in developing tim
I spent 2 days to resolve this issue you must set callbac url http: //127.0.0.1/ but it dont help me because when i start my application and request tweeter api it send request at twitter api but respone received on the for ex: http: //127.0.0.1/:2101 but in my browser url http: //localhost/:2101 and twitter api dont understand this,for this you have to manually set the browser URL http: //127.0.0.1/:2101 if u have same isue.At least for me it was the solution
Set your callback url in twitter app setting to http://127.0.0.1/
.
Add oauth_callback=http://localhost/return
as a parameter when you get request_tokens.
You need to edit your hosts
file.
Add something like
127.0.0.1 localhost
http://127.0.0.1/return will do the trick!