ASP.NET Web API Login with Facebook and Twitter

I'm going to dive into the ASP.NET Web API and would like to know if there is an easy way to connect my users to Facebook and Twitter?

+4
source share
3 answers

With the new version of Visual Studio 2012 and .NEt 4.5, Microsoft has completely switched to OAuth / OpenID.

An article with examples of how to maintain Facebook, Twitter, and Google accounts (there are 3 more blog articles linked below).

And here is a sweet little video from S. Hanselman no less.

+4
source

Definitely look at DotNetOpenAuth . This is an open source library for .Net that supports OpenID, OAuth v1 / v2, and InfoCards. There is good documentation and sample code on the site, as well as on various blogs (like this one ), which should make you point in the right direction.

+3
source

As for Facebook: They have a lot of documentation on how to implement login to Facebook accounts. Facebook Login: https://developers.facebook.com/docs/guides/web/#login

They also have a JavaScript SDK: (Unable to add a link due to reputation limitations, but check the link for SDK links)

Finally, you can also try the third-party .net API. There are several. Here is one of them: http://www.datasprings.com/resources/articles-information/developing-with-facebook-api-sdk-w-asp.net

I have not tried it, but it is Open Source, so if you do not want to use it, you can check this code and find out how to implement it yourself.

+1
source

All Articles