After asking for your opinions on which library I should release, there was a clear trend towards oAuth integration in the current ‘Twitter CodeIgniter Library‘
There’s some important changes with this release.
- Twitter_Connection.php is now contained within Twitter.php
- Code has been completely refactored
- Controller logic remains almost identical, despite large changes to the library
- Allows 3 types of authentication: none, basic, oauth
- oAuth is now fully operational
First of all, I must say a big thank you to everyone who helped me test and debug this library, I’ve had some real headaches with getting this operational.
Eventually, I had to use EpiTwitter by Jaisen Mathai. A big thank-you for his great work on Github. That code has been ported to this library, so credit to him for much of the oAuth work.
Eventually all the Epi functionality will be rewritten from scratch, but for now, the library seems to work pretty well.
Because Twitter’s oAuth uses a callback with a query param (that’s a ? in the url), Jamie Rumbelow’s MY_Input is bundled with the application to let use the Twitter library $_GET['oauth_token'].
It’s very important that you read the new documentation for the library if you want to use oAuth.
Twitter CodeIgniter Library with oAuth
Related posts: