aboutsummaryrefslogtreecommitdiff
path: root/frontend/lib/session.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/lib/session.class.php')
-rw-r--r--frontend/lib/session.class.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/frontend/lib/session.class.php b/frontend/lib/session.class.php
index 8a18f18..b1f7208 100644
--- a/frontend/lib/session.class.php
+++ b/frontend/lib/session.class.php
@@ -275,10 +275,9 @@ class Session
}
else
{
- $user_details = $fb->api_client->users_getInfo ($fb_uid,
- array ('email'));
- if ($user_details && isset ($user_details[0]['email']))
- $email = $user_details[0]['email'];
+ $me = $fb->api ('/me');
+ if ($me && isset ($me['email']))
+ $email = $me['email'];
else
return _('E-mail address is required.');

Return to:

Send suggestions and report system problems to the System administrator.