/**
*
* Get Media Comments
*
* @param string|API\Response\Model\FeedItem $mediaId FeedItem or FeedItem Id of Media to get Comments from
* @param string $maxId Next Maximum Id, used for Pagination
* @return API\Response\CommentsMediaResponse
* @throws Exception
*/
public function getMediaComments($mediaId, $maxId)
{
if (!$this->isLoggedIn()) {
throw new InstagramException("You must be logged in to call getMediaComments().");
}
if ($mediaId instanceof FeedItem) {
$mediaId = $mediaId->getPk();
}
$request = new CommentsMediaRequest($this, $mediaId, $maxId);
$response = $request->execute();
if (!$response->isOk()) {
throw new InstagramException(sprintf("Failed to getMediaComments: [%s] %s", $response->getStatus(), $response->getMessage()));
}
return $response;
}