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

getFanCount() method to GraphPage. (get pagelikes) #815

Merged
merged 2 commits into from
Jul 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Facebook/GraphNodes/GraphPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,14 @@ public function getPerms()
{
return $this->getField('perms');
}

/**
* Returns the `fan_count` (Number of people who likes to page) as int if present.
*
* @return int|null
*/
public function getFanCount()
{
return $this->getField('fan_count');
}
}