Skip to content

Commit

Permalink
Add example of getting profile photo for Facebook (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodge committed Jan 3, 2016
1 parent 176f3fe commit ea07693
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/services/extended/FacebookOAuth2Service.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ protected function fetchAttributes()
])
]
]);

$this->attributes['photo_url'] = $this->baseApiUrl.$this->getId().'/picture?width=100&height=100';

return true;
}
}

0 comments on commit ea07693

Please sign in to comment.