Instagram\Instagram::getTagFeed PHP Method

getTagFeed() public method

Fetch Tag Feed
public getTagFeed ( string $tag, string $maxId = null ) : TagFeedResponse
$tag string Tag
$maxId string Next Maximum Id, used for Pagination
return Instagram\API\Response\TagFeedResponse
    public function getTagFeed($tag, $maxId = null)
    {
        if (!$this->isLoggedIn()) {
            throw new InstagramException("You must be logged in to call getTagFeed().");
        }
        $request = new TagFeedRequest($this, $tag, $maxId);
        $response = $request->execute();
        if (!$response->isOk()) {
            throw new InstagramException(sprintf("Failed to getTagFeed: [%s] %s", $response->getStatus(), $response->getMessage()));
        }
        return $response;
    }