Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Commit 7300943

Browse files
committed
getFanCount() method to GraphPage. (get pagelikes)
1 parent da23a30 commit 7300943

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Facebook/GraphNodes/GraphPage.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,14 @@ public function getPerms()
144144
{
145145
return $this->getField('perms');
146146
}
147+
148+
/**
149+
* Returns the `fan_count` (Number of people who likes to page) as int if present.
150+
*
151+
* @return int|null
152+
*/
153+
public function getFanCount()
154+
{
155+
return $this->getField('fan_count');
156+
}
147157
}

0 commit comments

Comments
 (0)