Skip to content

Commit

Permalink
Return Facebook login profile picture as other providers, only with o…
Browse files Browse the repository at this point in the history
…ne (#71)
  • Loading branch information
lamasgergo authored and ovr committed May 5, 2018
1 parent 913320f commit 9ab7a42
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/OAuth2/Provider/Facebook.php
Expand Up @@ -88,6 +88,9 @@ public function getIdentity(AccessTokenInterface $accessToken)
);
}

$result->picture_object = $result->picture;
$result->picture = $result->picture->data->url;

$hydrator = new ObjectMap(
[
'id' => 'id',
Expand Down

0 comments on commit 9ab7a42

Please sign in to comment.