Some properties are just 'null'

Aug 17, 2012 at 7:09 PM

Hi there

I've got this query

var name = twitterCtx.Status.Where(s => s.ID == "233916082740686848" && s.Type == StatusType.Show).FirstOrDefault().User.ScreenName;

Unfortunately, "name" is just "null" afterwards. Same for .UserId or .User.UserID

When trying this query with plain http (http://api.twitter.com/1/statuses/show/233916082740686848.json) it works and the values are set. Am I missing something?

 

Thank you!

Coordinator
Aug 17, 2012 at 9:01 PM

Hi,

LINQ to Twitter doesn't change your input parameters.  Instead, it puts the ScreenName and UserID into the Identifier property of the User entity.  Here's more info:

UserIdentifier

Joe

Apr 22, 2013 at 7:41 PM
Edited Apr 22, 2013 at 7:53 PM
JoeMayo wrote:
Hi, LINQ to Twitter doesn't change your input parameters.  Instead, it puts the ScreenName and UserID into the Identifier property of the User entity.  Here's more info: UserIdentifier Joe
Hi Joe - i don't see identifier property in status entity.

do i need to include any parameters in my search query?

====sorry , please just ignore, i found it under User Entity. thank you