OK I've added this code to the template, like so... only thing that confused me initially is the '/channel.html' after my URL. Am I supposewd to amend that part of the URL as well?
<body onLoad="<actinic:variable value="PreloadImages" name="OnLoadScript" />">
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '378798852167173', // App ID
channelUrl : '//WWW.nutrixpetfoods.co.uk/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
<div id="fb-root"></div>
<script>(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 = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=378798852167173";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="wrapper">
<div id="header">
<div id="headerbox">
<p></p>
<p align="right">
<Actinic:Variable Name="QuickSearchBar"/>
I added the 'like' button code to my page like so:
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsSearchInterfaceUsed%22%20%2f%3e%20%3d%3d%20False%29" >
<h1><actinic:variable name="SectionName" /></h1>
<div class="solid_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div><br><br>
<div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>
The like buttons appear ok. But when you click on one I keep getting asked to log-in to FB (even though I'm already logged in).
Any ideas why it's doing this?
The 'Likes' don't show up in my FB timeline or newsfeed
I tried the iframe option but this didn't seem to work at all... just left a blank space on the page.
<body onLoad="<actinic:variable value="PreloadImages" name="OnLoadScript" />">
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '378798852167173', // App ID
channelUrl : '//WWW.nutrixpetfoods.co.uk/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
<div id="fb-root"></div>
<script>(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 = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=378798852167173";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div id="wrapper">
<div id="header">
<div id="headerbox">
<p></p>
<p align="right">
<Actinic:Variable Name="QuickSearchBar"/>
I added the 'like' button code to my page like so:
<actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%200%29%20AND%20%28%3cactinic%3avariable%20name%3d%22IsSearchInterfaceUsed%22%20%2f%3e%20%3d%3d%20False%29" >
<h1><actinic:variable name="SectionName" /></h1>
<div class="solid_line_blue"><img src="theme_shim.gif" height="1" width="1" alt=" " /></div><br><br>
<div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>
The like buttons appear ok. But when you click on one I keep getting asked to log-in to FB (even though I'm already logged in).
Any ideas why it's doing this?
The 'Likes' don't show up in my FB timeline or newsfeed
I tried the iframe option but this didn't seem to work at all... just left a blank space on the page.
Comment