Arpan Kc
Arpan Kc

Reputation: 938

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

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)

Upvotes: 5

Views: 1970

Answers (2)

Arpan Kc
Arpan Kc

Reputation: 938

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.

Upvotes: 2

Noahfaita
Noahfaita

Reputation: 21

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"

Upvotes: 2

Related Questions