Simple Facebook Connect Demo in ASP.NET

2019-01-30 20:01发布

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.

4条回答
做个烂人
2楼-- · 2019-01-30 20:55

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

查看更多
小情绪 Triste *
3楼-- · 2019-01-30 20:58

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楼-- · 2019-01-30 20:58

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/

查看更多
We Are One
5楼-- · 2019-01-30 21:08

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

查看更多
登录 后发表回答