/** * * Fetch Liked Feed * * @param string $maxId Next Maximum Id, used for Pagination * @return API\Response\LikedFeedResponse * @throws Exception */ public function getLikedFeed($maxId = null) { if (!$this->isLoggedIn()) { throw new InstagramException("You must be logged in to call getLikedFeed()."); } $request = new LikedFeedRequest($this, $maxId); $response = $request->execute(); if (!$response->isOk()) { throw new InstagramException(sprintf("Failed to getLikedFeed: [%s] %s", $response->getStatus(), $response->getMessage())); } return $response; }
/** * * Fetch Liked Feed * * @param string $maxId Next Maximum Id, used for Pagination * @return API\Response\LikedFeedResponse * @throws Exception */ public function getLikedFeed($maxId = null) { if (!$this->isLoggedIn()) { throw new InstagramException("You must be logged in to call getLikedFeed()."); } $request = new LikedFeedRequest($this, $maxId); $response = $request->execute(); return $response; }