Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b4ca9e
)
MDL-61826 auth: Facebook OAuth2 - getting a better-quality profile photo
author
Łukasz Szeremeta
<l.szeremeta.dev@gmail.com>
Mon, 2 Apr 2018 21:03:38 +0000
(23:03 +0200)
committer
Jun Pataleta
<jun@moodle.com>
Wed, 6 Jun 2018 04:09:09 +0000
(12:09 +0800)
Get 200x200 px instead of 50x50 px user profile picture from Facebook OAuth2.
lib/classes/oauth2/api.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/classes/oauth2/api.php
b/lib/classes/oauth2/api.php
index
72d4e97
..
179910d
100644
(file)
--- a/
lib/classes/oauth2/api.php
+++ b/
lib/classes/oauth2/api.php
@@
-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) {