Jul 30, 2011 at 12:31 AM
Edited Jul 30, 2011 at 12:37 AM
Hi Joe and everyone!
I'm building a desktop application on C# and I want to get just the last tweet posted from the time line, just like the main Twitter page. Let me explain my self, the application is gonna show just the last tweet and it's gonna be updating it every while
with a thread but i'm having problems to get this last tweet. I'm using the status demos to test but i'm kinda lost.
This is the code of the method that i'm using to test:
private static void FriendStatusQueryDemo(TwitterContext twitterCtx)
var friendTweets =
from tweet in twitterCtx.Status
where tweet.Type == StatusType.Friends
mainWin.timeline.Text = ("\nTweets for " + twitterCtx.UserName + "\n");
foreach (var tweet in friendTweets)
mainWin.timeline.Text += (
"Friend: " + tweet.User.Name +
"\nTweet: " + tweet.Text + "\n" + "\n");
So I tried erasing the "+" from the line " mainWin.timeline.Text += ( " but it only shows a tweet like 20 tweets before the last one. I don't know if there's a method
that i can use to do this.
I hope you could help me. Thanks :)