Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2012
    Posts
    15
    Plugin Contributions
    0

    Default Facebook "Like" Button on each product page - where to add FB details?

    I somehow managed to add this "like" button to every product page (with the help of the addon), it kinda is there and kinda works... but every time somebody presses "like", the red "error" appears to the right, if you click on it it shows this:

    The page failed to provide a valid list of administrators. It needs to specify the administrators using either a "fb:app_id" meta tag, or using a "fb:admins" meta tag to specify a comma-delimited list of Facebook users.
    Facebook ©2012

    Who can help me where in the code should I put the FB details (user? password?)

    Site - www.a p t e k a r u s.com

    Thanks in advance!

  2. #2
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Facebook "Like" Button on each product page - where to add FB details?

    You really don't need any addons.

    Just paste this link in your tpl_product_info_display.php


    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.(int)$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&amp;layout=standard&amp;show_faces=false&amp;width=300&amp;action=like&amp;co lorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; display:none; overflow:hidden; width:300px; height:40px" onload="this.style.display = 'block';"></iframe>

  3. #3
    Join Date
    Aug 2005
    Location
    Vic, Oz
    Posts
    1,905
    Plugin Contributions
    5

    Default Re: Facebook "Like" Button on each product page - where to add FB details?

    In your open graph tags
    Code:
    <meta property="og:title" content="META_TAG_FBTITLE"/>
        <meta property="og:site_name" content=""/>
        <meta property="og:image" content="META_TAG_FBIMG"/>
         <meta property="og:url" content="http://aptekarus.com/index.php?main_page=product_info&amp;products_id=200"/>
         <meta property="fb:admins" content="your app id or admin user ids"/>
        <meta property="og:type" content="product"/>
    and / or here
    Code:
        <script>
          window.fbAsyncInit = function() {
            FB.init({appId: 'your application id', status: true, cookie: true,
                     xfbml: true});
    		FB.Event.subscribe('edge.create', function(href, widget) {

 

 

Similar Threads

  1. Facebook "Like" button on every product page?
    By scrap in forum Templates, Stylesheets, Page Layout
    Replies: 114
    Last Post: 17 Apr 2013, 03:58 PM
  2. Facebook "Like/Share" Plugin - Using OG info for each product?
    By rubiconpeak in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 14 Oct 2012, 12:08 AM
  3. Replies: 26
    Last Post: 19 Feb 2010, 02:56 AM
  4. How can I show several product on same page - each with its own "add to cart" button?
    By Dianne in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 28 Nov 2008, 04:17 AM
  5. How to add "details" button to category page
    By soaknfused in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Sep 2008, 04:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR