Prose\UsingFacebookGraphApi::getPostsFromPage PHP Method

getPostsFromPage() public method

Get the first page of posts from a Facebook page
public getPostsFromPage ( integer $id ) : array
$id integer ID of the page to get data from
return array Posts from the page
    public function getPostsFromPage($id)
    {
        // what are we doing?
        $log = usingLog()->startAction("get posts from facebook for page {$id} via graph api");
        $returnedData = $this->makeGraphApiRequest("/" . $id . "/posts");
        $log->endAction("got posts for page {$id}");
        return $returnedData;
    }