Windows 8.1 Login

Apr 14, 2014 at 1:25 AM
hi, I try and failed login with LinqToTwitter in Win8.1, I see examples but its these has been used WinRtAuthorizer and LocalSettingsCredentials but not appear this references in my project... please help me, and excuse me for my bad English, I speak Spanish...
I installed linqToTwitter v3.0.2
Coordinator
Apr 14, 2014 at 5:50 AM
Hi,

The downloadable source code has an example named Linq2TwitterDemos_WindowsStore that has an example for the latest release. It looks like this:
            if (SharedState.Authorizer == null)
            {
                var auth = new WindowsStoreAuthorizer
                {
                    CredentialStore = new InMemoryCredentialStore
                    {
                        ConsumerKey = "",
                        ConsumerSecret = ""
                    },
                    Callback = "http://linqtotwitter.codeplex.com/"
                };

                await auth.AuthorizeAsync();

                SharedState.Authorizer = auth;
            }
@JoeMayo
Apr 14, 2014 at 12:48 PM
Hi, thanks, only one more question, the token store automatic or I should store token??
May 20, 2014 at 1:12 PM
Hi!

I've used that exact code in my Win 8.1 app, but now all of a sudden AuthorizeAsync() gives the following exception:

Failed to validate oauth signature and token - Please visit the LINQ to Twitter FAQ (at the HelpLink) for help on resolving this error.

What could be the problem?
Oct 15, 2014 at 9:28 AM
Hi JoeMayo,

if (SharedState.Authorizer == null)
        {
            var auth = new WindowsStoreAuthorizer
            {
                CredentialStore = new InMemoryCredentialStore
                {
                    ConsumerKey = "",
                    ConsumerSecret = ""
                },
                Callback = "http://linqtotwitter.codeplex.com/"
            };

            await auth.AuthorizeAsync();

            SharedState.Authorizer = auth;
        }
If I use the above code in my Windows 8 App, it gives me compile time error
Error 8 The type or namespace name 'WindowsStore' does not exist in the namespace 'LinqToTwitter' (are you missing an assembly reference?)