Announcement

Collapse
No announcement yet.

Integrating V10 with Facebook like....

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Integrating V10 with Facebook like....

    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.

    #2
    Anyone?

    Could somebody just test the 'like' buttons on the product pages to see if the same thing happens to them....

    (BTW, this isn't just a ploy to raise my Likes, honest)

    Comment


      #3
      The like button code generates a error on IE 7 pages. Whatever you do make sure you address these. Errors showing in an online shop - definitely not good!

      I have endless problems with the FB code sitting comfortably in Actinic. Perhaps this is just me!

      What's your URL?

      Comment

      Working...
      X