December 22nd, 2010
- PHP
Retweeting in CodeIgniter Using the Haughin Library
Sometimes the simplest things can be a real pain. I'm building an app that needs to use OAuth to login to Twitter. I'm also using CodeIgniter as my PHP framework. Haughin made a nice library for CI, but for the life of me I couldn't get it to retweet. It was driving me insane. After trying to find another library I sucked it up and dove into the code to see if I could figure out what was wrong. After a while I found it, the retweet api call has 3 segments, but the library only handles 1 or 2.