The remote server returned an error: (401) Unauthorized – Twitter API
When using the Twitter API for use with Microsoft’s ASP.NET Identity, which is the replacement for the old SQL Membership API.
After you create your app details on twitter. You plug in the consumerKey and consumerSecret in your AuthConfig.cs file.
When you try to login via your web application you get “The remote server returned an error: (401) Unauthorized”. It means that there is a issue with the credentials you have supplied.
For me, since I was working locally and didn’t have a domain name yet. It seamed that you need to put something, anything, in the Application settings Callback URL field. Localhost did not work, neither putting in a dummy domain. What did work is http://127.0.0.1. Now run you app and try to login via twitter. No more error.
Just be sure when you app is live to change the Callback URL field.