ASP.NET中简单的Facebook连接演示 [英] Simple Facebook Connect Demo in ASP.NET

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

问题描述

有人在asp.net应用程序中有一个简单而成功的Facebook连接的演示实现。我正在开发一个asp.net Web应用程序,并希望Facebook连接成为登录的主要方法。

解决方案

麻烦,但发现这个stackoverflow问题让我在正确的轨道上作为服务器端的东西



但是,首先,你必须从这里获取Facebook连接按钮工作 Facebook Wiki



然后检测是否登录,并将其重定向到欢迎页面。
通过Javascript检测登录



大多数其他操作可以通过使用Facebook Toolkit的服务器完成。 (例如获取他们的信息,朋友等)。



我认为我应该提到的最后一件事是记录用户,所以看看这个。 Facebook Wiki:退出



希望这有助于


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

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

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

Hope this helps

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆