Get Favorited tweets of Another user

May 18, 2014 at 6:08 AM
How would i get the Favorited tweets of another user using Linq2Twitter
        public List<Favorites> getFavoritesForUser(TwitterContext twitterCtx, ulong inUserId)
        {
            var favsResponse =
                  (from fav in twitterCtx.Favorites
                   where fav.Type == FavoritesType.Favorites
                   select fav)
                  .ToList();

            return favsResponse;
        }
For example, if i want the favorited tweets of a public user;
https://twitter.com/Drake/favorites

instead of the one that TwitterContext is referring to.
Coordinator
May 19, 2014 at 12:45 AM
Hi,

Favorites has a ScreenName property:
            var favsResponse =
                await
                    (from fav in twitterCtx.Favorites
                     where fav.Type == FavoritesType.Favorites &&
                                fav.ScreenName == "Drake"
                     select fav)
                    .ToListAsync();
Docs here:

https://linqtotwitter.codeplex.com/wikipage?title=Getting%20a%20List%20of%20Favorites&referringTitle=Querying%20Favorites

@JoeMayo