本文介绍了简单的Facebook连接演示在ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有Facebook的一个简单而成功的演示实施一个asp.net应用程序连接。我开发一个asp.net web应用程序,并希望Facebook Connect来是在登录的主要方法。

Does anyone have a simple and successful demo implementation of facebook connect in an asp.net application. I am developing an asp.net web application and want facebook connect to be the primary method for logging in.

推荐答案

我是有麻烦为好,但发现让我在正确的轨道上就这个问题计算器作为服务器端的东西来讲

I was having troubles as well, but found that this stackoverflow question got me on the right track as far as the server side stuff is concerned

不过,首先你要得到Facebook的连接按钮,在这里工作的

However, First you have to get the facebook connect button working from here Facebook Wiki

然后检测是否他们登录与否并适当地重定向他们一个欢迎页面。
检测登录

Then detect if they are logged in or not and redirect them appropriately to a welcome page.Detect login via Javascript

其他大部分操作可以通过服务器端与Facebook的工具包来完成。 (如获取信息,交友等。)

Most other actions can be done via serverside with the Facebook ToolKit. (eg get their information, friends, etc..)

我想我应该提到的是出注销用户,所以看看这个的最后一件事。

The last thing I think I should mention is logging the user out, so take a look at this. Facebook Wiki: Logout

希望这有助于

这篇关于简单的Facebook连接演示在ASP.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 08:56