List of Following People

Sep 27, 2012 at 3:34 PM

How can I get a list of people a twitter User is following? Not the followers.

Coordinator
Sep 27, 2012 at 4:59 PM

Hi,

You can do a Friends query, like this:

            var friendList =
                (from friend in twitterCtx.SocialGraph
                 where friend.Type == SocialGraphType.Friends &&
                       friend.ScreenName == "JoeMayo"
                 select friend)
                .SingleOrDefault();

            foreach (var id in friendList.IDs)
            {
                Console.WriteLine("Friend ID: " + id);
            }

Here's the documentation: http://linqtotwitter.codeplex.com/wikipage?title=Listing%20Friends&referringTitle=Listing%20Social%20Graphs.

Joe

Sep 29, 2012 at 1:56 PM
Thank you so much Joe. Its been a great help.
LINQToTwitter makes getting data from twitter a cake walk. Keep up the good work.


From: [email removed]
To: [email removed]
Date: Thu, 27 Sep 2012 09:00:00 -0700
Subject: Re: List of Following People [LinqToTwitter:397163]

From: JoeMayo
Hi,
You can do a Friends query, like this:
            var friendList =
                (from friend in twitterCtx.SocialGraph
                 where friend.Type == SocialGraphType.Friends &&
                       friend.ScreenName == "JoeMayo"
                 select friend)
                .SingleOrDefault();

            foreach (var id in friendList.IDs)
            {
                Console.WriteLine("Friend ID: " + id);
            }
Here's the documentation: http://linqtotwitter.codeplex.com/wikipage?title=Listing%20Friends&referringTitle=Listing%20Social%20Graphs.
Joe
Read the full discussion online.
To add a post to this discussion, reply to this email (LinqToTwitter@discussions.codeplex.com)
To start a new discussion for this project, email LinqToTwitter@discussions.codeplex.com
You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe on CodePlex.com.
Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com