This project has moved and is read-only. For the latest updates, please go here.

Can't get OAuth to work in Win8RT

May 23, 2013 at 4:52 AM
I've followed the example code and have tried downloading Win8OAuthDemo. I've updated to use my key and secret, but no matter what I always get a 401 response. The settings on my Twitter app are read, write & DM and the keys/secret are correct. I've looked at the big checklist of possible 401 errors, but none seem to apply.

This occurs immediately on:
await auth.AuthorizeAsync();

Is there a way to examine the response from the 401? I'm catching the System.Net.WebException, but ex.Response.ReadReponse() seems to return 158 bytes of nonsense (non human readable).

Is there some sort of Twitter waiting period? I just created the dev account and app today.
May 23, 2013 at 5:26 AM

Twitter doesn't have a waiting period - your credentials should work right away. Maybe you can update LINQ to Twitter to the newest version.

You can use Fiddler to see what Twitter is returning as a reason, which might provide some ideas.

May 23, 2013 at 5:54 AM
My bad on this. I didn't setup a callback URL in the Twitter app setup page at first. Once I did that, I'm good to go.