Hey Marco
I had a little trouble with the callback code, but it sounds like we’re both doing it the same way. An OAuth request to /request_token first, then the WAB GetCurrentApplicationCallbackUri method getting you the token details via the /authorize uri and the AuthenticateAsync method.
I know it sounds like you have already - but the first thing is going to be to double check that your OAuth app callback is registered as the exact WAB callback Uri in the Tumblr settings (including the final forward slash, a bad copy/paste caused me trouble with this one when I was discovering how it all worked!). I have different settings for my Win8 app than my WP7 app to do this
Unfortunately, it’s tricky to diagnose once it disappears into the WAB code. One thing I would say is to make sure you’re not running any network monitoring tools - I don’t know if there’s any custom setup required, but Fiddler caused my OAuth process to completely fail when I was using this method.
Other than that we’d be down to checking out the error’s call stack to see if we can see anything from the route the code has taken.
Sorry I can’t be of more help at the moment, right now the whole process does seem a little hit and miss for developers, which is a shame when a lot of the new .NET functionality is actually really helpful.
If you don’t want to post code/call stacks on the group - I’m happy for you to contact me off list.
Steven
From: Marco Tagliaferri
Sent: 15 October 2012 05:41
To: tumbl...@googlegroups.com Subject: Re: Tumblr on Windows 8/WinRT
Hi Steven,
been working on a Windows 8 app myself, however I am having a bit of an issue when completing the OAuth process using the WebAuthenticationBroker class. I can successfully navigate to the tumblr login page, however when I click the "allow" button I get an error message.
I suspect tumblr is returning a 404 and WinRT is not liking it... I have tried various callback URLs, from WebAuthenticationBroker.GetCurrentApplicationCallbackUri() to a static URL all to no avail. Did you get this part working? Do you have any pointers?
Thank you very much!
Marco
On Wednesday, October 3, 2012 8:38:07 AM UTC-4, Steven Pears wrote:
Afternoon from the UK!
Having now released my C# API on Github, I'm looking at working on a Win8 app for Tumblr.
I'm having trouble using WinRT with raw C# right now, mainly because of the contract restrictions on WinRT types and all the fun that entails - the bottom line is I'm looking at porting the entire library over to WinRT - which should hopefully make my life a lot easier (if for no other reason that it does binary based url encoding!)
I'm expecting this to take a week or so to figure out - plus there's just a lot of code to move across, but I was curious if there were any other devs on the group who might be interested in using / testing this once I'm done?
If there is - I'll look at posting the initial draft into Github as well.
Thanks in advance
Steven