Results 1 to 8 of 8
  1. #1
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Facebook "LIKE" button.

    Hi all;

    I have setup a "like" button to show up on every product page in my store. I did this by inserting the following code into my includes\templates\MY_TEMPLATE\templates\tpl_product_info_display.php file

    Code:
    <!--bof Facebook LIKE button -->
    <P ALIGN=center><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=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:200px; height:40px;"></iframe> </p>
    <!--eof Facebook LIKE button -->
    Now; the button works well but....when I click like on a product page and then go back to my Facebook page the Product info shows up fine but the product pic is not shown....quite on the contrary another seemingly random graphic from the product page is visible on the Facebook page.

    How can I get the actual product image to show up in Facebook and not incorrect graphics? Please feel free to fo to the site and click on "LIKE"...then go to your facebook page and see what I mean. The URL is http://oceanabyssaquatics.ca/store/

    Thanks in advance for you assistance
    Last edited by Tantirx; 28 Apr 2011 at 05:01 AM.

  2. #2
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Facebook "LIKE" button.

    Is this the tutorial that you followed ...
    Mark
    Hare Do

  3. #3
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Facebook "LIKE" button.

    Nope....it was much easier..I got it here.

    The purpose was to get people to "LIKE" a product and it then posts it on their Facebook Page. As you will see (on the right side of the website there is a link to the newly setup Facebook page for the business (I still need to add stuff...just set it up last night).
    Last edited by Tantirx; 28 Apr 2011 at 05:09 AM.

  4. #4
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Facebook "LIKE" button.

    Yes, i just have notice you have your site set up to log on before you see prices and wander if that is what blocking to image when I click the like and log into FB, I see no image..
    Mark
    Hare Do

  5. #5
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Facebook "LIKE" button.

    Actually I just logged in and and the same thing happened.

  6. #6
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Facebook "LIKE" button.

    Yep...confirmed...the same result when logged out and logged in.

  7. #7
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Facebook "LIKE" button.

    Reading the comments on the code you inserted I don't think it displays a picture on FB the way you want...
    1. Thank you for sharing this code! Mine seems to be working fine, except when I “Like” one of my products from my site, sometimes another product photo will show up on my Facebook page. Do you know any fixes for this problem?
    2. admin on December 16th, 2010 11:14 am Jackie,
      Your site works fine for me. Facebook page does not display any picture of the links you like… but if any picture is displayed, it will just pick one to display, as Facebook won’t know which is the actual image.
      Anyway, this is at Facebook side, so we have no control over it.
    Mark
    Hare Do

  8. #8
    Join Date
    Nov 2010
    Posts
    52
    Plugin Contributions
    0

    Default Re: Facebook "LIKE" button.

    Hmmm... I didn't see that I wish I could find a better script then....something that is not too involved.

 

 

Similar Threads

  1. Facebook "Like" doesn't always show image..
    By Mike_Dean in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 24 May 2013, 10:00 PM
  2. 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
  3. 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
  4. Facebook "Like" Button on each product page - where to add FB details?
    By Yaro in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 6 Jun 2012, 11:26 AM
  5. Facebook "Like" button
    By wilson_li in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Jul 2011, 08:29 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