abjerner/Skybrud.Social.Umbraco

Callback URL not approved for this client application.

BeingOnline opened this issue · 8 comments

I have followed the instructions and am using within Umbraco 7.12.3.

I have created an app from a Twitter account and put in a dummy value in for the callback URL - I just put in website

However when I click on the button to Authorize I get, in the pop-up window the message:

"Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings"

I am running Umbraco on localhost.

Have things changed with Twitter? Or is there something I am missing?

Thanks for any help you can be.

Hi @BeingOnline

Have you entered a callback URL in the settings for your Twitter app?

image

I can't remember for sure, but you may just be able to enter a dummy URL.

Hope that helps ;)

@BeingOnline I wasn't aware of this change, but Twitter are now validating the callback URL used in your code against the list of callback URLs you have specified for your Twitter app. You can read more about that here:

https://twittercommunity.com/t/action-required-sign-in-with-twitter-users-must-whitelist-callback-urls/105342

This means that if you want to use Twitter authentication on localhost, you'll have to specify a valid callback for localhost as well.

Hope that makes sense ;)

@BeingOnline good to hear you found a solution 👍

Anyways, if you're still having problems, it should be something like:

https://localhost:44370/App_Plugins/Skybrud.Social/Dialogs/TwitterOAuth.aspx

The callback URL is where the user should be redirected from Twitter.com when having approved your app. As my package needs to pick that up, the callback URL should be as above (with the domain matching the domain you're using).