Skip to content

Commit

Permalink
More Facebook Graph API 2.0 updates
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwathan committed Apr 1, 2015
1 parent 2bab13e commit 16a47fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function userId()

protected function nickname()
{
return $this->getProviderUserData('username');
return $this->getProviderUserData('name');
}

protected function firstName()
Expand All @@ -76,7 +76,7 @@ protected function lastName()

protected function imageUrl()
{
return 'https://graph.facebook.com/'.$this->userId().'/picture';
return 'https://graph.facebook.com/v2.3/'.$this->userId().'/picture';
}

protected function email()
Expand Down

0 comments on commit 16a47fd

Please sign in to comment.