From fb9dbcfb5dacab49bb90b0dfe1b4d1af49af2b33 Mon Sep 17 00:00:00 2001 From: Daniel Dewhurst Date: Thu, 12 Jul 2018 10:13:41 +0100 Subject: [PATCH] Added support for Instagram carousels --- src/SocialFeed.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/SocialFeed.php b/src/SocialFeed.php index 1a9df85..f47dcc5 100644 --- a/src/SocialFeed.php +++ b/src/SocialFeed.php @@ -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;