tweet.ScreenName/tweet.User.ScreenName = Empty String

Jul 26, 2011 at 9:56 PM

(Linq to Twitter RC1)

Why do the most obvious methods for getting a screen name (ScreenName and User.ScreenName) return an empty string? I see that using User.Identifier.ScreenName is a usable workaround, but all of the code samples I've seen except here on the forum use the other methods.

Are the other methods deprecated and the correct method is now User.Identifier.ScreenName, or is this just an error, or is this simply a mistake on my part?

Jul 26, 2011 at 10:10 PM


Using User.Identifier.ScreenName is correct.  The properties of Identifier are output from Twitter, while the others are query filter parameters.  This design allows you to have a simple query and retain the original query values, but use Identifier for the user information that Twitter returns.


Jul 26, 2011 at 10:45 PM

Ok, that makes sense.

Thanks a ton Joe, love Linq to Twitter.