Simple Facebook Connect Demo in ASP.NET

安稳与你 提交于 2019-11-28 16:33:00

问题


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.


回答1:


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




回答2:


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:

http://area72.ro/general-it/how-to-login-via-facebook-in-asp-net.html




回答3:


try to use the toolkit called Facebook Developer Toolkit

you have in Steve Blog a post about it, and you even download he's Starter Kit so you can view all the code :)

Hope it helps




回答4:


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.

http://developers.facebook.com/connect.php Check out the links on the right side.

The provided demo can be accessed here... http://www.somethingtoputhere.com/therunaround/



来源:https://stackoverflow.com/questions/444846/simple-facebook-connect-demo-in-asp-net

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!