本文介绍了如何登录使用Facebook的DotNetOpenAuth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有搜索,阅读FB开发者文档。

I have searched, read the FB developer docs.

MVC 4,我注册成立的OpenID。结果
现在,我想包括FB登录为好,就像#1和其他一些网站已经实现了。

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

做我创建与FB开发人员示例code我自己的JS文件?结果
OR结果
使用第三方工具,我不知道用什么。我没有看OAuthClient(DotNetOpenAuth-4.0.0.11165),它不能运行,出现了一个服务器错误,无法调试与源文件不见了。

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.

推荐答案

Facebook的实现较旧的OAuth 2比规范的最新测试版DotNetOpenAuth做。为了与Facebook互操作,您应该使用以避免400错误的请求错误。

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.

这篇关于如何登录使用Facebook的DotNetOpenAuth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 12:05