使用Facebook帐户登录网站 [英] Login to website using Facebook account
问题描述
我想在当前网站上实施SSO,以便我们可以使用Facebook帐户登录该网站.能否请您提供我需要执行的步骤?
I want to implement SSO in our current website so that we can login to that website using a Facebook account. Can you please provide the steps which I need to follow to implement it?
推荐答案
Mixu在他的第3页博客中精心解释了单点登录:
Mixu had meticulously explained single sign-on in his 3 paged blog:
1) http://blog.mixu.net/2010/12/27/implementing-facebook-login-single-sign-on-part-1/
2) http://blog. mixu.net/2011/01/03/implementing-facebook-login-part-2/
3) http://blog. mixu.net/2011/01/09/implementing-facebook-login-part-3/
更新
SSO只是使用Facebook登录用户,并在服务器上维护站点范围的会话,并在用户计算机上维护cookie.此会话对您网站上的所有页面均有效.您可以在C#中使用此codeplex示例来使您步入正轨: http://facebooktoolkit.codeplex.com/
SSO is simply logging a user with facebook and maintaining a site-wide session on your server and cookie on user's machine. This session shall remain valid for all pages on your website. You can use this codeplex example in C# to get you going on the right track: http://facebooktoolkit.codeplex.com/
有关更多信息,另请参见此答案(C#): https://stackoverflow.com/a/369691/842837
Also see this answer (in C#) for more info: https://stackoverflow.com/a/369691/842837
这篇关于使用Facebook帐户登录网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!