MyBB Community Forums

Full Version: MyFacebookConnect 3.4 birthday and location settings
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);
}
You could hit the CTRL/CMD button and disable it like that. Anyway, the alert is shown to developers only and does not affect the plugin’s functionality.
Maybe it is my browser problem, that it does not disable with CTRL.