From 3cd1b92603b9e95cb7aee72e3bad8a31d1fca628 Mon Sep 17 00:00:00 2001 From: flod1 Date: Thu, 15 Sep 2016 10:46:06 +0200 Subject: [PATCH] add cover and picture type and methode add cover and picture type, graphobjectMap and methode --- src/Facebook/GraphNodes/GraphPage.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/Facebook/GraphNodes/GraphPage.php b/src/Facebook/GraphNodes/GraphPage.php index f9c81cf67..08f72fe88 100644 --- a/src/Facebook/GraphNodes/GraphPage.php +++ b/src/Facebook/GraphNodes/GraphPage.php @@ -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', ]; /** @@ -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. *