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

Commit b31ab68

Browse files
committed
Merge pull request #253 from r3wt/4.0-dev
add `getEmail()` method to `Facebook::GraphUser()`
2 parents a78ff2d + 3a0c24d commit b31ab68

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Facebook/GraphUser.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ public function getName()
5151
{
5252
return $this->getProperty('name');
5353
}
54+
55+
public function getEmail()
56+
{
57+
return $this->getProperty('email');
58+
}
5459

5560
/**
5661
* Returns the first name for the user as a string if present.
@@ -117,4 +122,4 @@ public function getLocation()
117122
return $this->getProperty('location', GraphLocation::className());
118123
}
119124

120-
}
125+
}

0 commit comments

Comments
 (0)