I'm beginner to TweetSharp and I'm using the ListTweetsOnHomeTimeline() method of TweetSharp , sometimes this method works fine and sometimes its return null.
Below is my code
IEnumerable<TwitterStatus> homeTweets = service.ListTweetsOnHomeTimeline(new ListTweetsOnHomeTimelineOptions());
if (homeTweets != null)
{
foreach (var item in tweets)
{
Console.WriteLine("{0} says '{1}'", item.User.ScreenName, item.Text);
}
}
Any help will be appreciated.
I had the same problem because I was passing SinceId=0 as option (=null works fine); As I suppose you have modified your actual code before posting, this might be your problem. Or another invalid option that the Twitter API doesn't like.
Here is the piece of code that works for me: