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

Get friends' ID

Aug 5, 2011 at 10:39 PM
Edited Aug 5, 2011 at 11:01 PM

When I try getting the list of friends of a specified user (in the example it's ID "15411837"), it returns a list of users (no problem here) but sets the id of the friend to the id of the specified user e.g. 

var users = from tweet in twitterCtx.User
	   where tweet.Type == UserType.Friends &&
		 tweet.ID == "15411837" // <-- user to get friends for
	  select tweet;

foreach (var user in users)
	Console.WriteLine("ID: {0}, Name: {1}\nLast Tweet: {2}\n", user.ID, user.Name, user.Status.Text); // this is where it will output "ID: 15411837 no matter which 'user', Name: Correct name, Last Tweet: Correct tweet.

How can I get the IDs of the friends and not of the specified user?

Aug 5, 2011 at 11:53 PM

Ok, it's explained by this:

The user.Name and user.ID are input filters for the query, and user.Identifier.ID is the key.