Your official information source from the .NET Web Development and Tools group at Microsoft.
The project templates showcase a way of logging in with external login providers, along with the normal way of logging in by creating a local account
This post highlights how you can turn on support for logging through these services in the ASP.NET project templates that shipped with Visual Studio 2013 Preview. To learn more about how authentication via external providers works, please read the following article. http://www.asp.net/web-api/overview/security/external-authentication-services#USING
Steps to get keys for Facebook
Steps to get keys for Twitter
//app.UseTwitterAuthentication( // consumerKey: "", // consumerSecret: "");
//app.UseFacebookAuthentication( // appId: "", // appSecret: "");
Have fun integrating this into your application!!!
Facebook always give an error:
"Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains" using the standard template.
I have tried setting the url within facebook to
(Note - -this is from a non-local website) I am using Visual Studio 2012 Version 12.0.20623.01 Update
Google works fine.
That probably means the redirect_uri your application is sending is different from what's configured in the facebook app. Check with fiddler what redirect_uri is being sent from your application while redirecting to facebook. Start fiddler and then navigate to your app and try to authenticate with facebook. Check out the 302 response to facebook.com which will look something like this :