How to post image with status to twitter using vb.net application?

Feb 3, 2014 at 12:56 PM
Hi,

I have an issues with posting image with status. How can i post image with status on twitter using vb.net application. I am using 'https://api.twitter.com/1.1/statuses/update.json' api to update the status. Please help me to troubleshoot this problem. If you have any example for the same then please share with me.

Thanks,
Lalit
Coordinator
Feb 3, 2014 at 5:02 PM
Hi Lalit,

With the latest version of LINQ to Twitter, you can call TweetWithMediaAsync(). There are samples in the downloadable source code:

https://linqtotwitter.codeplex.com/SourceControl/latest#Linq2TwitterDemos_Console/StatusDemos.cs

@JoeMayo
Feb 4, 2014 at 8:57 AM
Hi JoeMayo,

Thanks for your quick reply.
The code example you provided me is based on C sharp, And My whole application is on Vb.net.

I tried to convert this code with tool but their are many syntax for which It gave me error and I am not able to use this code in my VB project.

So can you please provide me this example on Vb.net code so that I can use it for my problem.
Because I have to make a web service for this problem and my web service is on Vb.net code style, so please provide me complete Vb.net code for TweetWithMediaAsync()., As I saw this method has reference for a class file (TwitterContext.cs) which again has C sharp based coding, so I am not able to reproduce same code for my project on Vb.


I will be very thankful to you for this.

Thabks
Lalit