Jeremy
Jeremy

Reputation: 1908

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.

Upvotes: 14

Views: 27340

Answers (4)

balint
balint

Reputation: 3431

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

Upvotes: 3

Arron S
Arron S

Reputation: 5537

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

Upvotes: 8

JWD
JWD

Reputation: 12218

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/

Upvotes: 0

balexandre
balexandre

Reputation: 75113

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

Upvotes: 0

Related Questions