Skip to content

Commit 4977ce7

Browse files
committed
Merge pull request facebookarchive#491 from leonar15/5.0-dev
added a getEmail() method for GraphUser objects
2 parents 20ece25 + 5e7e691 commit 4977ce7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Facebook/GraphNodes/GraphUser.php

+10
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ public function getLastName()
9090
return $this->getField('last_name');
9191
}
9292

93+
/**
94+
* Returns the email for the user as a string if present.
95+
*
96+
* @return string|null
97+
*/
98+
public function getEmail()
99+
{
100+
return $this->getField('email');
101+
}
102+
93103
/**
94104
* Returns the gender for the user as a string if present.
95105
*

0 commit comments

Comments
 (0)