This project has moved. For the latest updates, please go here.

Login Failed

Jan 18, 2014 at 5:45 PM
Twitter changed his way to use his API yesterday.

Now uses SSL with Certificates Auth.

How can I update my App to use this new method?

Will be LinqToTwitter updated?

Here is the reference.
Jan 19, 2014 at 9:36 AM
I am also facing this problem. My code was working fine till 10 Jan, now i am unable to Login.

"The remote server returned an error: (401) Unauthorized."
Jan 27, 2014 at 3:18 AM
Edited Jan 27, 2014 at 4:04 AM
hi Joe Mayo,

I am using your library Linq-to-twitter since September is a very great and user-friendly library so i want to thank-you for it.
the problem i am facing is that after my first application suspension due to aggressive testing and then i made another application and i am unable to login now.i changed the consumer key and consumer secret but the code is returning error 401 .kindly help me on this.?

Here is my Code
        private WebAuthorizer auth;

        protected void Page_Load(object sender, EventArgs e)
            IOAuthCredentials credentials = new SessionStateCredentials();

            if (credentials.ConsumerKey == null || credentials.ConsumerSecret == null)
                credentials.ConsumerKey = ConfigurationManager.AppSettings["twitterConsumerKey"];
                credentials.ConsumerSecret = ConfigurationManager.AppSettings["twitterConsumerSecret"];

            auth = new WebAuthorizer
                Credentials = credentials,
                PerformRedirect = authUrl => Response.Redirect(authUrl)

            if (!Page.IsPostBack)

            if (string.IsNullOrWhiteSpace(credentials.ConsumerKey) ||
                lblAuthentication.Text = "You do not have any credentials.";
            else if (auth.IsAuthorized)
                lblAuthentication.Text = "Congratulations, you're authorized.";
                btnViewResults.Visible = true;
                btnBeginAuthentication.Visible = false;

        protected void btnBeginAuthentication_Click(object sender, EventArgs e)
Jan 27, 2014 at 3:56 PM
Hi RicardoPons,

Yes, LINQ to Twitter uses SSL by default. If you were setting URLs manually, change their protocol to "https".

Jan 27, 2014 at 3:59 PM
Hi AmmarShahidLive,

The 401 error is particularly onerous. Fortunately, I've collected a large set of reasons and troubleshooting steps that are now part of the LINQ to Twitter FAQ.