Cheetah
Public Member Functions | Static Protected Attributes | List of all members
Facebook\GraphNodes\GraphPage Class Reference
Inheritance diagram for Facebook\GraphNodes\GraphPage:
Facebook\GraphNodes\GraphNode Facebook\GraphNodes\Collection

Public Member Functions

 getId ()
 
 getCategory ()
 
 getName ()
 
 getBestPage ()
 
 getGlobalBrandParentPage ()
 
 getLocation ()
 
 getCover ()
 
 getPicture ()
 
 getAccessToken ()
 
 getPerms ()
 
- Public Member Functions inherited from Facebook\GraphNodes\GraphNode
 __construct (array $data=[])
 
 castItems (array $data)
 
 uncastItems ()
 
 asJson ($options=0)
 
 isIso8601DateString ($string)
 
 shouldCastAsDateTime ($key)
 
 castToDateTime ($value)
 
 castToBirthday ($value)
 
- Public Member Functions inherited from Facebook\GraphNodes\Collection
 getField ($name, $default=null)
 
 getProperty ($name, $default=null)
 
 getFieldNames ()
 
 getPropertyNames ()
 
 all ()
 
 asArray ()
 
 map (\Closure $callback)
 
 count ()
 
 getIterator ()
 
 offsetExists ($key)
 
 offsetGet ($key)
 
 offsetSet ($key, $value)
 
 offsetUnset ($key)
 
 __toString ()
 

Static Protected Attributes

static $graphObjectMap
 
- Static Protected Attributes inherited from Facebook\GraphNodes\GraphNode
static $graphObjectMap = []
 

Additional Inherited Members

- Static Public Member Functions inherited from Facebook\GraphNodes\GraphNode
static getObjectMap ()
 
- Protected Attributes inherited from Facebook\GraphNodes\Collection
 $items = []
 

Detailed Description

Definition at line 31 of file GraphPage.php.

Member Function Documentation

◆ getAccessToken()

Facebook\GraphNodes\GraphPage::getAccessToken ( )

Returns the page access token for the admin user.

Only available in the /me/accounts context.

Returns
string|null

Definition at line 131 of file GraphPage.php.

◆ getBestPage()

Facebook\GraphNodes\GraphPage::getBestPage ( )

Returns the best available Page on Facebook.

Returns
GraphPage|null

Definition at line 79 of file GraphPage.php.

◆ getCategory()

Facebook\GraphNodes\GraphPage::getCategory ( )

Returns the Category for the user's page as a string if present.

Returns
string|null

Definition at line 59 of file GraphPage.php.

◆ getCover()

Facebook\GraphNodes\GraphPage::getCover ( )

Returns CoverPhoto of the Page.

Returns
GraphCoverPhoto|null

Definition at line 109 of file GraphPage.php.

◆ getGlobalBrandParentPage()

Facebook\GraphNodes\GraphPage::getGlobalBrandParentPage ( )

Returns the brand's global (parent) Page.

Returns
GraphPage|null

Definition at line 89 of file GraphPage.php.

◆ getId()

Facebook\GraphNodes\GraphPage::getId ( )

Returns the ID for the user's page as a string if present.

Returns
string|null

Definition at line 49 of file GraphPage.php.

◆ getLocation()

Facebook\GraphNodes\GraphPage::getLocation ( )

Returns the location of this place.

Returns
GraphLocation|null

Definition at line 99 of file GraphPage.php.

◆ getName()

Facebook\GraphNodes\GraphPage::getName ( )

Returns the Name of the user's page as a string if present.

Returns
string|null

Definition at line 69 of file GraphPage.php.

◆ getPerms()

Facebook\GraphNodes\GraphPage::getPerms ( )

Returns the roles of the page admin user.

Only available in the /me/accounts context.

Returns
array|null

Definition at line 143 of file GraphPage.php.

◆ getPicture()

Facebook\GraphNodes\GraphPage::getPicture ( )

Returns Picture of the Page.

Returns
GraphPicture|null

Definition at line 119 of file GraphPage.php.

Member Data Documentation

◆ $graphObjectMap

Facebook\GraphNodes\GraphPage::$graphObjectMap
staticprotected
Initial value:
= [
'best_page' => '\Facebook\GraphNodes\GraphPage',
'global_brand_parent_page' => '\Facebook\GraphNodes\GraphPage',
'location' => '\Facebook\GraphNodes\GraphLocation',
'cover' => '\Facebook\GraphNodes\GraphCoverPhoto',
'picture' => '\Facebook\GraphNodes\GraphPicture',
]

Definition at line 36 of file GraphPage.php.


The documentation for this class was generated from the following file: