Get image url from twitter api entity parameter php
问题 I'm attempting to get and display images posted in a tweet with php via the entities parameter. I have include_entities in my url and can see the entities in the returned json. In my foreach loop, I am doing the following: foreach($results as $result){ $media_url = $result->entities->media->media_url; $media_size_h = $result->entities->media->sizes->small->h; $media_size_w = $result->entities->media->sizes->small->w; ... } However, this is not returning anything. For my output, I have... if