Now that MGTwitterEngine is officially on [[http://github.com/mattgemmell/MGTwitterEngine|Github]], I've started adding support for some functionality on my branch with the intention that it could be merged with the official branch. ====== Build Dependancies ====== Out the box to build MGTwitterEngine you need to have yajl & oauthconsumer installed. The folder TouchJSON will be Red if the source isn't in the project directory. ===== yajl ===== [[http://lloyd.github.com/yajl/|yajl]] must be built in a directory path that does not include spaces otherwise it fails. Building is easy, grab CMake from [[http://cmake.org]] install it and then in the yajl source dir do: ./configure && sudo make install This will put compile the lib and install it into /usr/local/lib & the headers in /usr/local/include. The reason this is done is that, at present, the MGTwitterEngine project refers to the headers Edit the project preferences and point them to the header, specifically set "User Header Search Paths" to /usr/local/include and check Recursive. ===== TouchJSON ===== Can be found in two places, not sure which is the official repository but I downloaded the GoogleCode version http://code.google.com/p/touchcode/ http://github.com/mrevilme/TouchJSON ===== oauthconsumer ===== There are three projects (1 original, 2 forks) on Github. I don't know which is the best to use. At present the http://github.com/jdg/oauthconsumer & http://github.com/ctshryock/oauthconsumer no longer include the OAToken_KeychainExtensions.h/m files (as not needed for the iPhone) which are listed in the Xcode project. If you use either of those them simply those files from the project. Then there is http://github.com/amazingsyco/oauthconsumer fork which does have the KeychainExtensions. ====== Adding SocialGraph calls ====== At present there are two social graph calls which return a list of ids. * [[http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-friends%C2%A0ids|Friend IDs]] * [[http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-followers%C2%A0ids|Follower IDs]] The returns for each API request have the same structure. Here is an example with **curl "https://api.twitter.com/friends/ids.xml?screen_name=duemoko&cursor=-1"** 114008937 7282592 15027362 00 ---- Updating API calls to use Cursor Note that the current implementation of statuses/followers needs to be updated. No longer needs bool, should use a cursor ... This makes parsing slightly awkward to maintain compatibility with the existing MGTwitter*Parser's So far the following API calls have optional Cursors: statuses/friends\\ statuses/followers\\ friends/ids \\ followers/ids\\ Adding cursor (as its optional) to statuses/friends & statuses/followers changes the xml with cursor: 0 0 without cursor: