Twitter apps and localhost

If you have tried creating a Twitter app with localhost as the callback URL, you might have received an URL invalid error message. All you have to do is use http://127.0.0.1 instead.

Simple, isn't it?