I'm using Umbraco 7.1 and while I previously had setup a feed to pull down properly, when I tried to change the feed by deleting the old one and then hitting the +Authorize link, I continually get an Unauthorized error from Twitter.
I've updated the consumer key and secret and they match the application settings in twitter and as I mentioned, this was previously working well. Even had a custom widget displaying the last 3 tweets as a cached macro for the footer on my site. It's only when wanting to change the twitter account it got messed up.
Here is the following issue I get when I click the +Authorize link.
I'll have to take a look into this. In the meantime, maybe try switching the auth property on your doctype to a textbox then in the editor, clear any saved value (save and publish) then go and switch it back to the auth property and see if that clears everything out?
I've given what you suggest a try and also completely removed the property from the page and it still gives me the same issue.
I've tried adding a new property of that type to another page that previously didn't have the property and also get the same error when clicking the Authorize link. I've also tried this in two different environments, the site I'm running is in Azure and locally in my development copy I have the same issues.
I logged out, tried again. Opened a completely different browser (IE) and made sure I wasn't logged into twitter and also got the same unauthorized result. It's quite puzzling.
I've done some more playing around with the problem, starting over completely from scratch and it seems to be isolated with the API Key and Consumer secret values. When I use the default (i.e. they are blank in the OAuth data type on a fresh install of the package), then I'm able to authenticate without issue. As soon as I add in the values generated by Twitter for my application, I get the error messages described.
I did have a callback setup, twitter was acting a little funny as it didn't save the first two times, I'd set it hit save, then it was not in the field. I may give it another go-round today if I have time.
YSOD When trying to authorize a new feed
Hello,
I'm using Umbraco 7.1 and while I previously had setup a feed to pull down properly, when I tried to change the feed by deleting the old one and then hitting the +Authorize link, I continually get an Unauthorized error from Twitter.
I've updated the consumer key and secret and they match the application settings in twitter and as I mentioned, this was previously working well. Even had a custom widget displaying the last 3 tweets as a cached macro for the footer on my site. It's only when wanting to change the twitter account it got messed up.
Here is the following issue I get when I click the +Authorize link.
Hey Mike,
I'll have to take a look into this. In the meantime, maybe try switching the auth property on your doctype to a textbox then in the editor, clear any saved value (save and publish) then go and switch it back to the auth property and see if that clears everything out?
Many thanks
Matt
Thanks for the reply Matt,
I've given what you suggest a try and also completely removed the property from the page and it still gives me the same issue.
I've tried adding a new property of that type to another page that previously didn't have the property and also get the same error when clicking the Authorize link. I've also tried this in two different environments, the site I'm running is in Azure and locally in my development copy I have the same issues.
Interesting. Have you tried logging out of your twitter account (at twitter.com) and seeing if that makes a difference?
Many thanks
Matt
I logged out, tried again. Opened a completely different browser (IE) and made sure I wasn't logged into twitter and also got the same unauthorized result. It's quite puzzling.
I've done some more playing around with the problem, starting over completely from scratch and it seems to be isolated with the API Key and Consumer secret values. When I use the default (i.e. they are blank in the OAuth data type on a fresh install of the package), then I'm able to authenticate without issue. As soon as I add in the values generated by Twitter for my application, I get the error messages described.
Hi Mike,
In twitter, where you have setup you app, have you set a callback url? We never use it, but for some reason, twitter needs one to be set.
Many thanks
Matt
I did have a callback setup, twitter was acting a little funny as it didn't save the first two times, I'd set it hit save, then it was not in the field. I may give it another go-round today if I have time.
Very old post but came across this today and confirm adding the callback solved the issue for me
http://yoursite.com/App_Plugins/utwit/twitteroauth1callback.aspx which was the page with the ysod in the first place
thanks Matt.
is working on a reply...