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.




PATH_INFO breaks my app.. When I click a link, or anything, it doesn’t work unless I maunally add ‘index.php’
What am I missing?
Thanks for oAuth Elliot! I love this library!
@Zack Kitzmiller check your htaccess file configuration or find $config['index_page'] in config/config.php and set its value as “index.php” if it is blank.
Thanks for this great library for CodeIgniter! One slight issue though, I am trying to use OAuth, have followed instructions but when the request is made to twitter, the oauth_token in the URL is blank, so does not work.
I have checked that all the requirements are met on the server, and have set up an app and put the relevant keys into the example code.
I would appreciate any advice!
hi
i would like to ask one question ,
1. when i put this code i get this error
Woah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again … it was probably an honest mistake.
please help to sort out this problem..
I seem cannot make this working by following instruction above.
It would be nice if you provide full implementation with CI framework in a zip.
Thanks!
This library is broken for the new Lists API because it makes the assumption that the request is either GET or POST (not DELETE), and only allows two parts to the path (the Lists API paths are longer and contain usernames and list slugs). Even when I modify it to allow for longer pathnames, portion of the library that attempts to convert the path into a method name for calling a method on EpiTwitter remains broken, as it seems to insert slashes in the wrong place when reconstituting the path from the method name. See this documentation on the Lists API for how this library needs to be updated: http://groups.google.com/group/twitter-development-talk/msg/d3c06fcd5b4affbe
Hi , Is there any updated version which support Lists API of twitter ? Thanks Elliot !