We put together a fix for the user issue. There was an var mapfp that was not being set.
We changed the Map FB User to:
Code:
if (!empty($_POST['fbuid']))
{
require_once('./includes/facebook/facebook.php');
if ($vbulletin->facebook == null)
$vbulletin->facebook = new Facebook($vbulletin->options['fbconnect_apikey'], $vbulletin->options['fbconnect_secret']);
$fbuid = intval($vbulletin->facebook->get_loggedin_user());
if ($fbuid > 0 && intval($_POST['fbuid']) == $fbuid)
{
//map fbuser to vbuser
$vbulletin->db->query_write("
INSERT IGNORE INTO " . TABLE_PREFIX . "fbuser
(fbuid, userid)
VALUES
(" . $fbuid . ", " . intval($vbulletin->userinfo['userid']) . ")
");
}
}
Unfortunately there is another issue that the fb breaks all the AJAX functions. None of the ajax stuff works so I added the lines:
Code:
<script type="text/javascript">
<!--
// Main vBulletin Javascript Initialization
vBulletin_init();
//-->
</script>
back in to fix this
But there is an error with facebook which we cannot resolve that breaks the publish newsfeed functionality.