Why media_url are empty for some tweet in REST API?


#1

Hello,

I tried to read some tweet with GET statuses/show/:id.

For this one I have media_url entities :

https://api.twitter.com/1.1/statuses/show.json?id=783728189709414402

and for this one, i haven’t :

https://api.twitter.com/1.1/statuses/show.json?id=782972817230946305

I don’t see difference on twitter timeline. They have pictures on twitter.

Thanks


#2

Second tweet is truncated, so you need to use tweet_mode=extended in the call to get the full object:

https://api.twitter.com/1.1/statuses/show.json?id=782972817230946305&tweet_mode=extended


#3

I’m grabbing the full timeline here:
$url = ‘https://api.twitter.com/1.1/statuses/user_timeline.json’;

I added the ?tweet_mode=extended and can now access the media_url … but the text is now gone? How do I access the text now?