Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple Facebook Connect Demo in ASP.NET

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.

like image 962
Jeremy Avatar asked Jan 14 '09 21:01

Jeremy


2 Answers

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

like image 177
Arron S Avatar answered Oct 22 '22 04:10

Arron S


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

like image 44
balint Avatar answered Oct 22 '22 02:10

balint