Try this:

_NOTE_: Twitter does not allow localhost as callback URL due to security reasons. If you are testing an application on localhost, you can do some type of host mapping such as in the `/etc/hosts` file as follows:

        127.0.0.1 SOMEHOST.com    localhost