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
As users work through these flows, they need a web page or location to be sent to after they have successfully logged in and provided authorization to the developer's App. This follow-up webpage or location is called a callback URL.
Enable 3rd Party Application in TwitterClick "App Settings". Scroll down to your app and click the settings (cog) icon. Scroll down to "Authentication settings" and click "Edit". Toggle "Enable 3-legged OAuth" to be on, and we'll need to fill in two properties, Callback URLs and Website URL .
The callback URLs, also known as redirect URIs, tell the server where to send the user with the proper tokens after authentication. For purposes within Skuid, you'll want the end user sent back to the Skuid site/org accessing the data.
Callback URLs are the URLs that Auth0 invokes after the authentication process. Auth0 redirects back to this URL and appends additional parameters to it, including an access code which will be exchanged for an id_token , access_token and refresh_token .
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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With