Quantcast
Channel: Tweetinvi a friendly Twitter C# library
Viewing all articles
Browse latest Browse all 4126

Commented Unassigned: I want to retweet using tweetinvi. [2436]

$
0
0
Hi , I want to retweet using tweetinvi but I got return null. I am sharing my code here please help asap.

ITweet data1 = null;

TwitterCredentials.ExecuteOperationWithCredentials(credentials, () =>
{
data1 = Tweet.GetTweet(TweetID);
});

TwitterCredentials.ExecuteOperationWithCredentials(credentials, () =>
{
data1 = data1.PublishRetweet();
});

and also I have used data1.PublishRetweet(); and data1.PublishRetweetAsync(); but among number of attempts I got retweeted once but never happened it again even i tried with number of new tweets.
Please help me to get out from this.

Thanks
Chandra
Comments: ** Comment from web user: chandrabhushan53 **

In this application , I am tweeting using tweetinvi without logged in twitter user on web because this api has option to tweet message just add twitter id and hashtag in message. After tweeting this message will be displayed to concern user. Now i want to retweet message so 1st I am getting TweetID of that message and then retweeting using above code. so am I doing any mistake here?.


Viewing all articles
Browse latest Browse all 4126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>