Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to log in with Facebook using DotNetOpenAuth

I have searched, read the FB developer docs.

MVC 4, I incorporated OpenId.
Now I want to include FB login as well, just as Stackoverflow and some other site have implemented it.

Do I create my own JS file with sample code from FB developer?
OR
Use a third party tools, which I am not aware of what to use. I did look at OAuthClient (DotNetOpenAuth-4.0.0.11165), it could not run, there was a server error and could not debug as the source file was missing.

like image 632
Picflight Avatar asked Feb 06 '12 17:02

Picflight


1 Answers

Facebook implements an older OAuth 2 spec than the latest DotNetOpenAuth beta does. To interop with Facebook, you should use the CTP of v3.5 of DotNetOpenAuth to avoid the 400 Bad Request error.

like image 82
Andrew Arnott Avatar answered Oct 17 '22 03:10

Andrew Arnott