This fixed for me, as suggested by valan on github https://github.com/q2a/question2answer/issues/510#issuecomment-289858537 per this http://stackoverflow.com/questions/42994019/facebook-graph-api-not-work-from-2-2-to-2-3
USE AT YOUR OWN RISK. NOT TO BE USED ON PRODUCTION SITES.
In qa-plugin/facebook-plugin/base_facebook.php
/* FIND THIS */
$response_params = array();
parse_str($access_token_response, $response_params);
if (!isset($response_params['access_token'])) {
return false;
}
$this->destroySession();
$this->setPersistentData(
'access_token', $response_params['access_token']
);
/* TO BE REPLACED WITH THIS */
$response = json_decode($access_token_response);
if (!isset($response->access_token)) {
return false;
}
$this->destroySession();
$this->setPersistentData(
'access_token', $response->access_token
);
/* FIND THIS */
$response_params = array();
parse_str($access_token_response, $response_params);
if (!isset($response_params['access_token'])) {
return false;
}
return $response_params['access_token'];
/* REPLACE WITH THIS */
$response = json_decode($access_token_response);
if (!isset($response->access_token)) {
return false;
}
return $response->access_token;