I\'m trying to write a web application that would use Twitter via OAuth.
I run my local server as \'localhost\', so I need the callback URL to be something like
There is also another solution (a workaround, rather) which requires you to edit your hosts
file.
Here is how you do it on a linux box:
Open your /etc/hosts
file as root
. To do this, you can open a terminal and type something like sudo vi /etc/hosts
.
Pick a non-existent domain to use as your local address, and add it to your hosts
file. For example, you will need to add something similar to the following at the end.
127.0.0.1 localhost.cep # this domain name was accepted.
So, that's pretty much it. Pointing your browser to localhost.cep
will now take you to your local server. Hope that helped :)