Permalink
Browse files

Tweaked facebook.

  • Loading branch information...
1 parent b21f8c1 commit ec007f3d288a622285a649138f961f539670056c Phil Sturgeon committed Apr 8, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 classes/provider/facebook.php
@@ -36,9 +36,9 @@ public function get_user_info(Token_Access $token)
// Create a response from the request
return array(
'uid' => $user->id,
- 'nickname' => $user->username,
'name' => $user->name,
- 'email' => $user->email,
+ 'nickname' => isset($user->username) ? $user->username : null,
+ 'email' => isset($user->email) ? $user->email : null,
'image' => 'https://graph.facebook.com/me/picture?type=normal&access_token='.$token->access_token,
'urls' => array(
'Facebook' => $user->link,

0 comments on commit ec007f3

Please sign in to comment.