login($credentials->getLogin(), $credentials->getPassword()); // we need media code $feedComments = $api->getMediaComments('CIvZJcurJaW'); //$feedComments = $api->getMediaCommentsById('2463298121680852630'); print_r($feedComments->getComments()); $feedComments = $api->getMoreMediaComments('CIvZJcurJaW', $feedComments->getEndCursor()); print_r($feedComments->getComments()); } catch (InstagramException $e) { print_r($e->getMessage()); } catch (CacheException $e) { print_r($e->getMessage()); }