2019-06-29, 03:53 PM
I tried to disable the birthday and location rights requirement in the MFC scope settings, but the option select has no empty value, so i can choose both or one of the options, but i need to clear it.
[attachment=41943]
Now i changed the plugin files a bit to have empty value and to clean empty field before query to facebook app.
Now it brings me back to forum, but with 443 port problem (EDIT: fixed now).
Thanks for the plugin - works great now.
myfbconnect.php
==========================
$list = [
'' => '',
'user_location' => 'Location',
'user_birthday' => 'Birthday'
];
class_facebook.php
==========================
$fields_arr = explode(',', $fields);
$clean_fields = [];
foreach($fields_arr as $key=>$value) {
if($value != '') $clean_fields[$key] = $value;
}
$fields = implode(',', $clean_fields);
try {
$response = $this->facebook->get('/me?fields=' . $fields);
}
[attachment=41943]
Now i changed the plugin files a bit to have empty value and to clean empty field before query to facebook app.
Now it brings me back to forum, but with 443 port problem (EDIT: fixed now).
Thanks for the plugin - works great now.
myfbconnect.php
==========================
$list = [
'' => '',
'user_location' => 'Location',
'user_birthday' => 'Birthday'
];
class_facebook.php
==========================
$fields_arr = explode(',', $fields);
$clean_fields = [];
foreach($fields_arr as $key=>$value) {
if($value != '') $clean_fields[$key] = $value;
}
$fields = implode(',', $clean_fields);
try {
$response = $this->facebook->get('/me?fields=' . $fields);
}