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

Added getLocale() #414

Merged
merged 1 commit into from
May 13, 2015
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
15 changes: 15 additions & 0 deletions src/Facebook/GraphUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,25 @@ public function getName()
return $this->getProperty('name');
}

/**
* Returns the email for the user as a string if present.
*
* @return string|null
*/
public function getEmail()
{
return $this->getProperty('email');
}

/**
* Returns the locale for the user as a string if present.
*
* @return string|null
*/
public function getLocale()
{
return $this->getProperty('locale');
}

/**
* Returns the first name for the user as a string if present.
Expand Down