PHP Class Prose\UsingFacebookGraphApi

Inheritance: extends Prose
Mostrar archivo Open project: datasift/storyplayer

Protected Properties

Property Type Description
$base_path

Public Methods

Method Description
getLatestPostFromPage ( integer $id ) : array getLatestPostFromPage
getPostsFromPage ( integer $id ) : array getPostsFromPage

Private Methods

Method Description
makeGraphApiRequest ( string $path ) : stdClass makeGraphApiRequest

Method Details

getLatestPostFromPage() public method

Get only the latest post from a page
public getLatestPostFromPage ( integer $id ) : array
$id integer ID of the page to get data from
return array First post from a page

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

Property Details

$base_path protected_oe property

protected $base_path