I think I understand your question that you want to display a bunch of users and their last tweet - but continue to check if their last tweet has changed and updated the screen when the user sends a tweet?
If so, the answer is that you need to call twitterapi asynchronously so often and pull out the last status (tweet) for each user - and if it's new, then use ajax to update part of the screen with the old status (tweet) in it.
In TweetSharp, if you have a Friends List, you can pull out your last tweet with something like:
string profileImageUrl = String.Empty; string name = String.Empty; string statusText = String.Empty; string createdAt = String.Empty; string screenName = String.Empty; foreach (TwitterUser friend in friends) { try { profileImageUrl = String.IsNullOrEmpty(friend.ProfileImageUrl) ? "" : friend.ProfileImageUrl; name = String.IsNullOrEmpty(friend.Name) ? "" : friend.Name; statusText = (friend.Status == null || friend.Status.Text.Length == 0) ? "unknown" : friend.Status.Text;
So, you can first display it on the screen.
Then use jquery (or javascript) to periodically hit the web service that reads the twitter api , and then use the data returned to update the last tweet if it changed.
Let me know if I have the wrong end of the stick.
EDIT:
An example of using Tweetsharp to post a new tweet on Twitter:
var query = FluentTwitter.CreateRequest().AuthenticateAs(username,password).Statuses().Update("Posting status on StackOverflow").AsJson();
amelvin
source share