views:

72

answers:

3

Hi there,

Simple question really, I've been looking all over the Internet probably for the past few days for several hours a day looking for some solid information on OpenID and Facebook Connect integration on a website.

I have seen the same names popup such as Janrain offering their solution, but I see a lot of websites such as Invision Power Board forums and even here at StackOverflow utilising different solutions.

The main two logins we wish to accept on our site are Facebook and Twitter. I've really been looking for a tutorial, or at least a guide to incorporating this functionality into a PHP website.

If anyone has any information or any pointers that would be great.

Thanks!

A: 

I'd start with the official docs. They're pretty good.

http://developers.facebook.com/docs/authentication/

http://dev.twitter.com/pages/sign_in_with_twitter

The twitter one is a little more obtuse, but it's still pretty easy to follow.

UltimateBrent
+2  A: 

For Twitter, just use their simple JavaScript SDK:

But I would really avoid implementing these services myself. E.g. Twitter anywhere is maybe painless to setup, but then you rely on their JavaScript. It's been down before and then your page takes ages to load or doesn't load at all.

I haven't tried the new Facebook APIs, but 2 years ago, I wasted a way a week of my life trying to integrate their API and the general idea I got was -- unless you know someone at Facebook that can check out some log or let you know why this API doesn't respond like it's supposed to, you're just on your own.

We do use Janrain's engage product (free). It works really, really well.

Dealing with all these services directly is a royal (!) PITA. They are down, change how they work, mis-behave -- it's good to outsource that to someone who seems to know all the ins and outs. In our case Janrain.

Till
Thanks for that, does Janrain let you store the users details (first name, last name, email, profile pic link for fb) in your own database or can you not do that using their service?
lethalMango
Yeah, with the free version we get their name and email for sure. In FB's case, people can select an email proxy too. I'm not sure about the profile pic, but maybe -- depending on the service. :)
Till
Forgot: In Twitter's case, there is no email address - but that's because twitter doesn't return it.
Till
+2  A: 

There's a copy and paste Facebook login button solution out there. It's also free. It's developed by LaunchBit. You could try that.

http://toolkit.launchbit.com

rbxcbe