Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anyone know of a good tutorial for Facebook authentication?

I'm linking my app to Facebook, and would like people to log in with their Facebook account, but I can't figure out how to do this. I had read up on Facebook Connect, but it seems that that's not used any more - but every tutorial I can find seems to refer to it. When I try to follow them, it doesn't work, because the interface has changed.

So, can anyone direct me to a tutorial or guide to doing this the new way?

Basically, what I want to do is this:

A user who is signed into Facebook and comes to my webpage is automatically logged in to my app (with the usual Facebook 'granting permission' windows etc), or can sign in with their Facebook account if they're not already logged in.

I then want to use Facebook to link users with their friends who are also registered on my site, so they can share things.

I would also like to have access to Facebook comments made on wall posts from my site - so the comment stream for a particular post can be seen on my site as well as on Facebook, and comments can be made on either.

If anyone can point me in the right direction (or even tell me what I should be typing in to Google!) I'd be very grateful.

Thanks.

like image 998
Sharon Avatar asked Nov 06 '22 00:11

Sharon


1 Answers

Some sample apps that do many of the things you speak of are shown here. The Graph API is probably your best bet right now for delivering the content and access you need and there are numerous tutorials online for how to use it, including the Facebook Developers site itself.

like image 170
Matt Bishop Avatar answered Nov 11 '22 13:11

Matt Bishop