ASP.NET中简单的Facebook连接演示 [英] Simple Facebook Connect Demo in ASP.NET
问题描述
麻烦,但发现这个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屋!