Aothorization, entering pin

Nov 1, 2012 at 12:11 PM

Can I provide oauth autorization using LinqToTwitter without let user to enter pin,

Like it is made in MetroTweet or TweeTRO?

And how can I do this? Thanks.

Coordinator
Nov 1, 2012 at 1:17 PM

Hi,

If you're using Windows 8, you can use WinRtAuthorizer. There's a sample on this page, named MetroWinRtAuthorizerDemo:

http://linqtotwitter.codeplex.com/wikipage?title=LINQ%20to%20Twitter%20Samples&referringTitle=Home

Joe

Nov 2, 2012 at 10:30 PM

Joe,

I can't get that sample to work. I updated the code to use my consumer key and secret however all I get is 401 when it calls AuthorizeAsync. What am I missing?

Thanks,

Simon

Nov 2, 2012 at 10:52 PM

Joe,

Ignore that. I got it to work. I went back and re-created my application on Twitter with the right access level and it is now working as expected.

Thanks,

Simon

Coordinator
Nov 3, 2012 at 12:00 AM

Happy you got it working. :)

Joe

Jan 27, 2013 at 10:24 AM

Could you tell how it must work?

I see just Unauthorized exception  (401) after i set ConsumerKey and ConsumerSecret in this example. I've check my application for access level so it is ok.

I loggined via PinAuthorizer and save credentials to check them on WinRTAuthorizer. With the last ones it works fine but how I can be authorized if I set just ConsumerKey and ConsumerSecret - no UserId, no email, password, pin?

Coordinator
Jan 27, 2013 at 6:41 PM

Hi,

Here's the LINQ to Twitter FAQ, which has a section on 401 errors:

http://linqtotwitter.codeplex.com/wikipage?title=LINQ%20to%20Twitter%20FAQ&referringTitle=Documentation

@JoeMayo