Skip to content

Commit

Permalink
Added support for Instagram carousels
Browse files Browse the repository at this point in the history
  • Loading branch information
danjdewhurst committed Jul 12, 2018
1 parent 7fbba3b commit fb9dbcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/SocialFeed.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,9 @@ private function parseItem($item)
case 'image':
$media->image = $item->images->standard_resolution->url;
break;
case 'carousel':
$media->image = $item->carousel_media[0]->images->standard_resolution->url;
break;
}

$response->user = $user;
Expand Down

0 comments on commit fb9dbcf

Please sign in to comment.