I came across a strange issue where some images won't show in the API console even though a user has posted one with a tweet.
Notice the second tweet in this timeline (right now anyway) it starts with ... World premiere of new #play 'Between a Man and a Woman ... https://twitter.com/BatterseaBarge
In some cases an image gets posted and gets a :large appended to the image url. ie.
<img src="https://pbs.twimg.com/media/exmaple.jpg:large"/>
Now when images like this are in a post and I run a test on the API console no media_url is coming up in the response. Of course when :large is not appended to a url it will come up in the response. here is name to test... BatterseaBarge https://dev.twitter.com/rest/tools/console
It seems like a bug in the API in my opinion. Anyone have any ideas?
Follow-up to answer: As noted below that is the answer for me. I use an array to get the user_timeline so for others who do it similar to this, hope it helps. Just an additional note this does show a lot more stuff so the load time will probably slow down a bit too for those who are creating their own twitter feeds. Caching is always best for sure!
$fetchedTweets = $connection->get(
'statuses/user_timeline',
array(
'tweet_mode' => 'extended',
'screen_name' => $name,
'count' => $totalToFetch,
'exclude_replies' => $excludeReplies,
'images' => $description_image,
'include_rts' => $show_retweets,
)
);