Codeigniter – Social Authentication With CodeIgniter

codeigniteropenid

I have a project where I'm supposed to integrate Facebook Login & Twitter Login buttons using CodeIgniter, I was wondering what would be the best approach? As this project requires more Social Login buttons in the future (like LinkedIn , Google , etc).

I heared of OpenID & JanRain.

Best Answer

You can use Phil Sturgeon's Oauth/Oauth v2 Codeigniter libraries.

Oauth v2 is the way to go. Much easier and cleaner to use. Currently it supports:

  • Facebook
  • Foursquare
  • GitHub
  • Google
  • PayPal
  • Instagram
  • Soundcloud
  • Windows Live
  • YouTube

Oauth v1 is a P.I.T.A to use, but I'm afraid some popular social websites don't provide an Oauth v2 API yet

Related Topic