From 70c498ec1c8ba3080a61852a30845f42ad3109ef Mon Sep 17 00:00:00 2001
From: Patrick Radtke <patrick@cirrusidentity.com>
Date: Mon, 27 Mar 2017 14:58:40 -0600
Subject: [PATCH] facebook oauth response format changed
---
modules/authfacebook/extlibinc/base_facebook.php | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/authfacebook/extlibinc/base_facebook.php b/modules/authfacebook/extlibinc/base_facebook.php
index 7fd46b545..65c490524 100644
--- a/modules/authfacebook/extlibinc/base_facebook.php
+++ b/modules/authfacebook/extlibinc/base_facebook.php
@@ -790,7 +790,8 @@ abstract class BaseFacebook
}
$response_params = array();
- parse_str($access_token_response, $response_params);
+ //parse_str($access_token_response, $response_params);
+ $response_params = json_decode($access_token_response, true);
if (!isset($response_params['access_token'])) {
return false;
}
--
GitLab