Twitter won't let me add 127.0.0.1 as the callback URL?

Viewed 816

enter image description here

I'm trying to implement OAuth authentication with twitter. To test locally I need to add the callback URL (http://127.0.0.1/...) , However it says 'Invalid website url' when I put in the localhost URL.

The documentation callback-urls states that this should be valid.

(P.S. I did the same thing with Google where the localhost URL (http://127.0.0.1/...) was accepted)

2 Answers

You need to use ngrok with the https url: install it and then run it with the command : ngrok http "port_that_u_re_using"

I solved it by creating a new developer account, This new account let me set any kind of callback URL I wanted including :

When creating your developer account make sure you don't say it's for academic or research purposes and specify that it's for a software/app you're going to deploy.

Related