mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-61826 auth: Facebook OAuth2 - getting a better-quality profile photo
Get 200x200 px instead of 50x50 px user profile picture from Facebook OAuth2.
This commit is contained in:
parent
5b4ca9eb5b
commit
ac45c16544
@ -89,7 +89,7 @@ class api {
|
||||
$endpoints = [
|
||||
'authorization_endpoint' => 'https://www.facebook.com/v2.12/dialog/oauth',
|
||||
'token_endpoint' => 'https://graph.facebook.com/v2.12/oauth/access_token',
|
||||
'userinfo_endpoint' => 'https://graph.facebook.com/v2.12/me?fields=id,first_name,last_name,link,picture,name,email'
|
||||
'userinfo_endpoint' => 'https://graph.facebook.com/v2.12/me?fields=id,first_name,last_name,link,picture.type(large),name,email'
|
||||
];
|
||||
|
||||
foreach ($endpoints as $name => $url) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user