Consider a call to retrieve a Twitter user's list of favorites using abraham/twitteroauth PHP library:
https://api.twitter.com/1.1/favorites/list.json
Given the following parameters:
$params = array(
'screen_name' => $screenName,
'count' => $count,
'include_entities' => true,
);
Whereas all requested tweets actually show/embed a photo on the Twitter site, the related media
fields expected to be found within the entities
parent fields are not always present in the API response.
Here's a tweet whose response include the field, and another one whose response does NOT include it. You'll found respective JSON
responses in this Gist: https://gist.github.com/davidloubere/8331a2b523772d99c669e1e720aa4afc
Does someone have an explanation for this?