I am developing an Application on my localhost environment. Where I want to implement Twitter OAuth functionality in PHP. So I just went on dev.twitter.com and was trying to create an app but its not allowing me to pass Callback URL
as localhost
or 127.0.0.1
.
1) Firstly I tried as localhost
2) Then I tried as localhost/demoproject
3) After I tried IP with project name
But its taking it as a invalid callback/url format.
Is there any way to deal with this?
Thanks
For localhost, use the following URLs in your dev.twitter.com application setup:
Website URL: http://127.0.0.1:8000/twitter/oauth
Callback URL: http://127.0.0.1:8000/twitter/oauth
And don’t worry, these are just placeholders, as long as your code sends the correct callback URL when it connects, things ought to work...