Twitter oAuth callbackUrl - localhost development

Viewed 90516

Is anyone else having a difficult time getting Twitters oAuth's callback URL to hit their localhost development environment. Apparently it has been disabled recently. http://code.google.com/p/twitter-api/issues/detail?id=534#c1

Does anyone have a workaround. I don't really want to stop my development

17 Answers

I just had to do this last week. Apparently localhost doesn't work but 127.0.0.1 does Go figure.

This of course assumes that you are registering two apps with Twitter, one for your live www.mysite.example and another for 127.0.0.1.

Yes, it was disabled because of the recent security issue that was found in OAuth. The only solution for now is to create two OAuth applications - one for production and one for development. In the development application you set your localhost callback URL instead of the live one.

Seems nowadays http://127.0.0.1 also stopped working. A simple solution is to use http://localtest.me instead of http://localhost it is always pointing to 127.0.0.1 And you can even add any arbitrary subdomain to it, and it will still point to 127.0.0.1

See Website

Related