diff --git a/hybridauth/Hybrid/Providers/Facebook.php b/hybridauth/Hybrid/Providers/Facebook.php index 6faed9264..bc2dad5b8 100644 --- a/hybridauth/Hybrid/Providers/Facebook.php +++ b/hybridauth/Hybrid/Providers/Facebook.php @@ -178,7 +178,7 @@ function getUserProfile() $this->user->profile->firstName = (array_key_exists('first_name',$data))?$data['first_name']:""; $this->user->profile->lastName = (array_key_exists('last_name',$data))?$data['last_name']:""; $this->user->profile->photoURL = "https://graph.facebook.com/" . $this->user->profile->identifier . "/picture?width=150&height=150"; - $this->user->profile->coverInfoURL = "https://graph.facebook.com/" . $this->user->profile->identifier . "?fields=cover"; + $this->user->profile->coverInfoURL = "https://graph.facebook.com/" . $this->user->profile->identifier . "?fields=cover&access_token=".$this->api->getAccessToken(); $this->user->profile->profileURL = (array_key_exists('link',$data))?$data['link']:""; $this->user->profile->webSiteURL = (array_key_exists('website',$data))?$data['website']:""; $this->user->profile->gender = (array_key_exists('gender',$data))?$data['gender']:"";