PublishTweetWithImage not working
See original GitHub issueTweet.PublishTweetWithImage is not working for me. I receive no errors, it just doesn’t post to Twitter.
Tweetinvi version = 1.2.0.1 (nuget package)
I’m using it in an asp.net MVC application as follows:
byte[] imageBytes = webClient.DownloadData( imageUrl );
Tweet.PublishTweetWithImage( text, imageBytes );
The image is fine, example: http://s123.eu/uploads/media/1/b9272763d8e640b1ba16.jpg I receive the byte data, no issues there. Tweetinvi just doesn’t seem to post it on Twitter.
I also use Tweet.PublishTweet for tweets without image and that is working fine.
I also tried this alternative, but it is also not working:
var media = Tweetinvi.Upload.UploadImage( imageBytes );
Tweet.PublishTweet( text, new PublishTweetOptionalParameters { Medias = { media } } );
Any suggestions? Thanks. @Asshen
Issue Analytics
- State:
- Created 7 years ago
- Comments:36 (4 by maintainers)
Top Results From Across the Web
c# - TweetInvi Listview can't get TweetID
Here is my code. Problem occurs when i select desired Item from view and press retweet. namespace MIF_TwitterApplication { public partial class ...
Read more >Tweetinvi a friendly Twitter C# library - RSSing.com
I just want to ask a question about a weird issue that I have been facing. I setup a filtered stream so I...
Read more >Using F# to power an AWS IoT Button | by Jacqueline Nolis
NET Core installed, my next step was to try and get any F# code working with it. I followed this guide on Medium,...
Read more >The Content Of Your Tweet Is Invalid
I think all the solutions that include access keys stuff will not work. The problem is that Twitter can not send you a...
Read more >The Content Of Your Tweet Is Invalid
Twitter Developer Platform">Troubleshooting Cards. If you're having trouble Tweeting via the web ... Unable to publish Tweet with image using MediaIds #977.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This also works,
Just tested just the tweetwithmedia model, public partial class Form1 : Form { public Form1() { InitializeComponent(); Auth.SetUserCredentials(“CONSUMER_KEY”, “CONSUMER_SECRET”, “ACCESS_TOKEN”, “ACCESS_TOKEN_SECRET”); }
http://unkindbrotherhood.com/favicon.png"); Tweet.PublishTweetWithImage(“Testing Tweet With Media”, imageBytes);
I replaced my keys and tokens with CONSUMER_KEY etc. just so that my keys aren’t available on email/github here
On Thu, Feb 2, 2017 at 8:04 PM, Unkind Jolt unkindjolt@gmail.com wrote: