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

Commit 3a0c24d

Browse files
author
Garrett R. Morris
committed
add getEmail() method to Facebook::GraphUser()
Tested and working in my application.
1 parent a78ff2d commit 3a0c24d

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)