Forums / General Questions / Facebook "LIKE" button.

Facebook "LIKE" button.

Views: 1,840

Results 1 to 9 of 9
28 Apr 2011, 3:55 AM
#1
tantirx avatar

tantirx

New Zenner

Join Date:
Nov 2010
Posts:
52
Plugin Contributions:
0

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

<!--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'])); ?>&layout=standard&show_faces=false&width=450&action=like&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 :laugh:

28 Apr 2011, 4:00 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

Re: Facebook "LIKE" button.

Is this the tutorial that you followed ... > http://www.picaflor-azul.com/blog/?p=568

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2011, 4:04 AM
#3
tantirx avatar

tantirx

New Zenner

Join Date:
Nov 2010
Posts:
52
Plugin Contributions:
0

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).

28 Apr 2011, 4:15 AM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

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..

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2011, 4:25 AM
#5
tantirx avatar

tantirx

New Zenner

Join Date:
Nov 2010
Posts:
52
Plugin Contributions:
0

Re: Facebook "LIKE" button.

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

28 Apr 2011, 4:34 AM
#6
tantirx avatar

tantirx

New Zenner

Join Date:
Nov 2010
Posts:
52
Plugin Contributions:
0

Re: Facebook "LIKE" button.

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

28 Apr 2011, 4:37 AM
#7
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,187
Plugin Contributions:
0

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. >
2. 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?

  1. 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.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

28 Apr 2011, 4:42 AM
#8
tantirx avatar

tantirx

New Zenner

Join Date:
Nov 2010
Posts:
52
Plugin Contributions:
0

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.

28 Apr 2011, 10:13 AM
#9
picaflor_azul avatar

picaflor_azul

Totally Zenned

Join Date:
Jul 2009
Location:
picaflor-azul.com
Posts:
6,940
Plugin Contributions:
28

Re: Facebook "LIKE" button.

If you follow my tutorial here:

Easy Help Zen Cart Tutorial: How to Add a Facebook Like Button to Your Product Pages

Glen (thanks gjh42) has just helped me out and fixed the code so that your product image will show on facebook.

Thanks,

Anne