Skip to content

Commit

Permalink
add cover and picture type and methode
Browse files Browse the repository at this point in the history
add cover and picture type, graphobjectMap and methode
  • Loading branch information
flod1 authored and SammyK committed Oct 12, 2016
1 parent 9c5a1c7 commit 3cd1b92
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Facebook/GraphNodes/GraphPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ class GraphPage extends GraphNode
'best_page' => '\Facebook\GraphNodes\GraphPage',
'global_brand_parent_page' => '\Facebook\GraphNodes\GraphPage',
'location' => '\Facebook\GraphNodes\GraphLocation',
'cover' => '\Facebook\GraphNodes\GraphCoverPhoto',
'picture' => '\Facebook\GraphNodes\GraphPicture',
];

/**
Expand Down Expand Up @@ -99,6 +101,26 @@ public function getLocation()
return $this->getField('location');
}

/**
* Returns CoverPhoto of the Page.
*
* @return GraphCoverPhoto|null
*/
public function getCover()
{
return $this->getField('cover');
}

/**
* Returns Picture of the Page.
*
* @return GraphPicture|null
*/
public function getPicture()
{
return $this->getField('picture');
}

/**
* Returns the page access token for the admin user.
*
Expand Down

0 comments on commit 3cd1b92

Please sign in to comment.