mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-61827 auth: Change Facebook Graph API v2.8 to v.2.12 in OAuth2
Use v2.12 Facebook Graph API instead of v2.8
This commit is contained in:
parent
39fab18e27
commit
65bcb7da0e
1 changed files with 3 additions and 3 deletions
|
@ -87,9 +87,9 @@ class api {
|
||||||
$issuer->create();
|
$issuer->create();
|
||||||
|
|
||||||
$endpoints = [
|
$endpoints = [
|
||||||
'authorization_endpoint' => 'https://www.facebook.com/v2.8/dialog/oauth',
|
'authorization_endpoint' => 'https://www.facebook.com/v2.12/dialog/oauth',
|
||||||
'token_endpoint' => 'https://graph.facebook.com/v2.8/oauth/access_token',
|
'token_endpoint' => 'https://graph.facebook.com/v2.12/oauth/access_token',
|
||||||
'userinfo_endpoint' => 'https://graph.facebook.com/v2.8/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,name,email'
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($endpoints as $name => $url) {
|
foreach ($endpoints as $name => $url) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue