Ia m using twitterizer to diplay tweets on the website , but the issue its showing all the tweets ,i just want to show the tweets by user not the replies, the code i am using is:
if (!Page.IsPostBack)
{
try
{
UserTimelineOptions options = new UserTimelineOptions();
options.ScreenName = "XXXXX";
TwitterStatusCollection tweets = TwitterTimeline.UserTimeline(options).ResponseObject;
int counter = 0;
string TwitterCode = "";
foreach (TwitterStatus thisStatus in tweets)
{
if (counter < 7)
{
DateTime completeDate = thisStatus.CreatedDate;
string complete = completeDate.ToLongDateString();
TwitterCode += "<li><p ><a href=\"http://twitter.com/" + thisStatus.User.ScreenName + "\" target=\"_blank\" >" + Server.HtmlEncode(thisStatus.Text) + "<br/><span style=\"color:#E87D05;\">" + complete + "</a></p></li>";
counter += 1;
}
else
{
break;
}
}
ltlTweets.Text = TwitterCode;
}
catch (Exception ex)
{
}
}
The above code works fine but i want to avoid the replies , how can i do that i have gone through documentation of twitteriser but couldnt find any solution for it , Anysuggestions or help will be appreciated Thanks