This project has moved and is read-only. For the latest updates, please go here.

Get ALL photos posted by a user

Aug 16, 2014 at 4:11 PM
I'm trying to obtain all of the photos posted by a given user.

The following return some photo's but not all? What the best way to do this???
                    Tweets = await (from tweet in twitterCtx.Status
                                             where tweet.Type == StatusType.User &&
                                             tweet.IncludeEntities == true &&
                                             tweet.Count == 3200 &&
                                             tweet.Entities.MediaEntities.Count > 0 &&
                                             tweet.UserID == Convert.ToUInt64(TwitterID)
                                             select tweet).ToListAsync();

Aug 16, 2014 at 7:26 PM

Twitter doesn't have an endpoint for reading photos. As you've coded in the example, the max number of tweets for a user is 3200 and that's the best you can do. Also, you can only get 200 per request, which means you must page through results. My blog post, Working with Timelines with LINQ to Twitter, explains how to accomplish this.