Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitterizer - How to post a reply?

I'm using the Twitterizer wrapper for a new ASP.NET project. I have a gridview showing me the twitter timeline. I have a button in every row to reply to a specific status message. But i just reply a message like this: "@screenName this is a reply". This is just a new statusupdate on my twitter. But the in_reply_to_user_id field of that status is not filled in. What should i do to reply correctly to a message?

like image 241
ThdK Avatar asked Jan 29 '26 00:01

ThdK


1 Answers

One of the TwitterStatus.Update(...) overloads accepts a StatusUpdateOptions parameter. This parameter allows you to specify the status that a tweet is in reply to with a InReplyToStatusId property.

For example, (I'm freehanding this code)

StatusUpdateOptions options = new StatusUpdateOptions();
options.InReplyToStatusId = 12345;
TwitterResponse<TwitterStatus> replyResult = TwitterStatus.Update(tokens, "@somebody this is a reply", options);
like image 154
Ricky Smith Avatar answered Jan 30 '26 12:01

Ricky Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!