Search code examples
c#linqlinq-to-twitter

LinqToTwitter not seeing all private lists


I'm trying to view all private lists of the authenticated user using linqtotwitter. However, this only shows one private List, even though there are another 18 on the list. It seems to have selected this one list at random as it sits half way up when viewing it on the Twitter website. My code is below:

var lists =
   (from list in ctx.List
    where list.Type == ListType.Ownerships &&
    list.ScreenName == "screenname" 
    select new ListDetails
    {
        Name = list.Name
    }).ToList();

return lists;

Solution

  • Just me being dim, I was using ApplicationOnlyAuthorizer when I should have been using SingleUserAuthorizer

    ITwitterAuthorizer twitterAuthorizer = new SingleUserAuthorizer