Search code examples
iphonetwittermgtwitterengine

MGTwitterEngine is not returning re-tweets, only “original” tweets


I’m a newbie to iPhone app development and trying to create a Twitter-based iPhone app. I’m using MGTwitterEngine to search and retrieve the timeline of people I follow. The method I’m using is:

[twitterEngine getFollowedTimelineSinceID:0 startingAtPage:0 count:100]; 

Things are working great, however there are a couple of things I struggle with:

  1. I’m only getting tweets originally posted by my followed list, no re-tweets at all. I would really like to get all tweets (original and re-tweets) at the same call, but if I need to perform two requests (one for tweets and one for re-tweets) that will work fine for me as well.
  2. I’m getting back less than 100 tweets, though I know for a fact that people I follow have posted more than that. Any idea how to solve it?

Several people have mentioned MGTwitterEngine is lacking re-tweeting functionality. I’m not trying to re-tweet but simply to get the complete timeline (including re-tweets by people I follow).

Many thanks!


Solution

  • Look at this https://dev.twitter.com/docs/api/1/get/statuses/home_timeline

    Specifically look at the part that say :

    Include_RTS : When set to either true, t or 1,the timeline will contain native retweets (if they exist) in addition to the standard stream of tweets...
    

    Now in the getFollowedTimelineSinceID method you'll need to create a new object for the params dictionary something along these lines

    [params setObject:[NSString stringWithFormat:@"%@", @"true"] forKey:@"Include_RTS"];