From 16a47fda62eb53bcaa8173d6b4ebe24d04ec468a Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Wed, 1 Apr 2015 08:56:36 -0400 Subject: [PATCH] More Facebook Graph API 2.0 updates --- src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php b/src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php index 2c7fcb1..30a3d89 100644 --- a/src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php +++ b/src/AdamWathan/EloquentOAuth/Providers/FacebookProvider.php @@ -61,7 +61,7 @@ protected function userId() protected function nickname() { - return $this->getProviderUserData('username'); + return $this->getProviderUserData('name'); } protected function firstName() @@ -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()