Simple Facebook Connect Demo in ASP.NET

27,288

Solution 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

Solution 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

Share:
27,288
Jeremy
Author by

Jeremy

Updated on July 28, 2022

Comments

  • Jeremy
    Jeremy over 1 year

    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.

  • John Sheehan
    John Sheehan over 15 years
    Facebook Connect != Facebook App. Connect is like OpenID