thank you i tried that, but still getting an error....
Parse error: syntax error, unexpected 'v6' (T_STRING), expecting ',' or ')' in /qa-theme/Green/qa-theme.php on line 773
it's this part of their code
$this->output('<script src="<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v6.0'
});
};
i tried adding a ,
version : 'v6.0',
but still same error
i deleted it because, is it really needed?
then get another error
Parse error: syntax error, unexpected 'https' (T_STRING), expecting ',' or ')' in /qa-theme/Green/qa-theme.php on line 780
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = '
https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
yeah, i don't think I can make this work....
public function body()
{
$this->output('<body');
$this->body_tags();
$this->output('>');
$this->output('<script src="<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v6.0'
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = '
https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Your customer chat code -->
<div class="fb-customerchat"
attribution=setup_tool
page_id="YOURPAGEID"
theme_color="#4267b2"
logged_in_greeting="YOUR GREETING."
logged_out_greeting="YOUR GREETING.">
</div>">');
$this->body_script();
$this->body_header();
$this->body_content();
$this->body_footer();
$this->body_hidden();
$this->output('</body>');
}