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

Commit d6b337b

Browse files
committed
Update GraphUser.php
Gender is missing.
1 parent ba73290 commit d6b337b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Facebook/GraphUser.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ public function getLastName()
8686
{
8787
return $this->getProperty('last_name');
8888
}
89+
90+
/**
91+
* Returns the gender for the user as a string if present.
92+
*
93+
* @return string|null
94+
*/
95+
public function getGender()
96+
{
97+
return $this->getProperty('gender');
98+
}
8999

90100
/**
91101
* Returns the Facebook URL for the user as a string if available.

0 commit comments

Comments
 (0)