Get Second,Third and Forth image from a tweet

Feb 20, 2015 at 3:55 AM
Hello Guys,

I tried to get media from a tweet that contains 4 images using
tweet.Entities.Medias[0].MediaURL;
tweet.Entities.Medias[1].MediaURL;
tweet.Entities.Medias[2].MediaURL;
tweet.Entities.Medias.[3].MediaURL;
anybody did that before ?
Editor
Feb 20, 2015 at 4:27 AM
I'm not sure why it doesn't show up under Entities but you can use either tweet.ExtendedEntities or tweet.Media to achieve what you're trying to do.

imlokesh
Feb 20, 2015 at 4:36 AM
Edited Feb 20, 2015 at 4:36 AM
Media count = 1 under Entities and also under tweet.Media while the tweet has 4 images
Editor
Feb 20, 2015 at 4:39 AM
Edited Feb 20, 2015 at 4:42 AM
You sure using the latest version?
var tweet = Tweet.GetTweet(448927844979056641L);
var urls = tweet.Media.Select(m => m.MediaURL);
foreach (var url in urls)
{
    Debug.WriteLine(url);
}
I get the following output:
http://pbs.twimg.com/media/BjrpfXkCYAABiD-.jpg
http://pbs.twimg.com/media/BjrpftmCYAAioCt.jpg
http://pbs.twimg.com/media/BjrpftGCEAETu1a.jpg
http://pbs.twimg.com/media/Bjrpfr9CIAAKEYF.jpg
imlokesh
Marked as answer by linvi on 2/20/2015 at 3:01 AM
Feb 20, 2015 at 4:58 AM
I'm using the one from Nuget
Feb 20, 2015 at 5:16 AM
Upgrading to the version on Codeplex fixed the problem,

wish u upgrade the one on Nuget also

Thanks
Coordinator
Feb 20, 2015 at 9:50 AM
Hi,

This will be done with the release of 0.9.5.0.
Sorry about this.

Linvi