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:
committed by
Jun Pataleta
parent
9c607c0b8c
commit
148ef43015
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user