Just for the record, I'll post the changes here for someone else. I did hardcode my domain since these are custom changes anyway and must be reintegrated back for every JFBConnect update (unless you have a better place to override this behavior). Note that $returnLang being NULL implies the main domain (i.e. no translation)... otherwise, I do have a foreign language subdomain:
$returnLang = $_SERVER;
if (!$returnLang)
$returnBase = "
drinkedin.net/";
else
$returnBase = "http://" . $returnLang . ".drinkedin.net/";
$doc->addCustomTag('<script type="text/javascript">' .
$logoutFacebookJavascript . "\n" .
"jfbc.base = '" . $returnBase . "';\n" .
"jfbc.return_url = '" . base64_encode($return) . "';\n" .
"jfbc.login.scope = '" . $requiredPerms . "';\n" .
"jfbc.login.show_modal = '" . $showLoginModal . "';\n" .
"jfbc.login.auto = '" . $this->configModel->getSetting('facebook_auto_login') . "';\n" .
"jfbc.login.logged_in = " . (!$user->guest && JFBCFactory::usermap()->getProviderUserId($user->id, 'facebook') ? 'true' : 'false') . ";\n" .
"jfbc.token = '" . JSession::getFormToken() . "';\n" .
$debugCmd .
"jfbc.init();\n" .
"</script>");