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:
Łukasz Szeremeta
2018-04-20 02:33:55 +02:00
committed by Eloy Lafuente (stronk7)
parent 5f2fe216f0
commit c9ef8771ce
+3 -3
View File
@@ -87,9 +87,9 @@ class api {
$issuer->create();
$endpoints = [
'authorization_endpoint' => 'https://www.facebook.com/v2.8/dialog/oauth',
'token_endpoint' => 'https://graph.facebook.com/v2.8/oauth/access_token',
'userinfo_endpoint' => 'https://graph.facebook.com/v2.8/me?fields=id,first_name,last_name,link,picture,name,email'
'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'
];
foreach ($endpoints as $name => $url) {