C# ASP.NET 中的简单 Facebook Connect 演示
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/444846/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Simple Facebook Connect Demo in ASP.NET
提问by Jeremy
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.
有没有人在asp.net 应用程序中有一个简单而成功的facebook 连接演示实现。我正在开发一个 asp.net web 应用程序,并希望 facebook connect 成为登录的主要方法。
采纳答案by Arron S
I was having troubles as well, but found that this stackoverflow questiongot me on the right track as far as the server side stuff is concerned
我也遇到了麻烦,但发现这个 stackoverflow 问题让我走上了正确的轨道,就服务器端的东西而言
However, First you have to get the facebook connect button working from here Facebook Wiki
但是,首先您必须从这里获得 Facebook 连接按钮Facebook Wiki
Then detect if they are logged in or not and redirect them appropriately to a welcome page. Detect login via Javascript
然后检测他们是否登录并适当地将他们重定向到欢迎页面。 通过 Javascript 检测登录
Most other actions can be done via serverside with the Facebook ToolKit. (eg get their information, friends, etc..)
大多数其他操作可以通过服务器端使用 Facebook ToolKit 完成。(例如获取他们的信息、朋友等。)
The last thing I think I should mention is logging the user out, so take a look at this. Facebook Wiki: Logout
我认为我应该提到的最后一件事是将用户注销,所以看看这个。Facebook Wiki:注销
Hope this helps
希望这可以帮助
回答by balexandre
try to use the toolkit called Facebook Developer Toolkit
尝试使用名为Facebook Developer Toolkit 的工具包
you have in SteveBlog a post about it, and you even download he's Starter Kitso you can view all the code :)
你在Steve博客中有一篇关于它的帖子,你甚至可以下载他的入门工具包,这样你就可以查看所有代码:)
Hope it helps
希望能帮助到你
回答by JWD
I know you asked for ASP.NET resources. The Facebook Connect page provides some good information as well as the source to a sample implementation using PHP. Hopefully you can pull some good information from the PHP code.
我知道您要求提供 ASP.NET 资源。Facebook Connect 页面提供了一些很好的信息以及使用 PHP 的示例实现的源代码。希望您可以从 PHP 代码中提取一些好的信息。
http://developers.facebook.com/connect.phpCheck out the links on the right side.
http://developers.facebook.com/connect.php查看右侧的链接。
The provided demo can be accessed here... http://www.somethingtoputhere.com/therunaround/
提供的演示可以在这里访问... http://www.somethingtoputhere.com/therunaround/
回答by balint
As I see, all the above examples and links are really outdated. The new Facebook Graph API makes the whole process a lot easier, without the need for any other components:
如我所见,上述所有示例和链接都已经过时了。新的 Facebook Graph API 使整个过程变得更加容易,无需任何其他组件:
http://area72.ro/general-it/how-to-login-via-facebook-in-asp-net.html
http://area72.ro/general-it/how-to-login-via-facebook-in-asp-net.html