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-02 23:54:18 +02:00
parent 39fab18e27
commit 65bcb7da0e

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) {