Zen Cart Logo
Forums / All Other Contributions/Addons / Facebook Like Button

Facebook Like Button

Views: 52,534

Results 341 to 347 of 347
18 Aug 2013, 7:36 PM
#341
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
413
Plugin Contributions:
0

Facebook Like Button

I installed this module in zencart 1.3.8a and it works fine, however I have two questions:

  1. Im not sure but to me it seems like this module does exactly the same as this code:
<!--BOF Facebook Like button--> <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"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like" data-width="450" data-layout="box_count" data-show-faces="false" data-send="false"></div> <!--EOF Facebook Like button-->

Please correct me if Im wrong, and explain to me why I should use the module instead of the simple code above.

  1. On my website the Like counts shows "0" on all product info pages when Im on secure (https) pages, but it shows the correct counts when on non-secure (http) pages. Is this normal behaviour for this module?
18 Aug 2013, 7:53 PM
#342
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Facebook Like Button

First, I have to say if you are on 1.3.8a, you need to upgrade. 1.3.8 is not a secure version.

Secondly, the advantage of this, if you have installed it correctly, is that Facebook will pull the correct stuff - such as the product image. Without that you never can tell what image will end on facebook. Take a peek into the header_html.php file and see the metatags that facebook likes to have.

But it is intended for product pages only.

I know nothing about incorrect counts on secure pages. Not been reported before.

However, with all that said, this was written in 2010. If there has been any changes to the like button or its requirements by facebook, I haven't checked in a long time to know.

18 Aug 2013, 8:43 PM
#343
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Facebook Like Button

1I have this mod in my 1.3.9h store and it works beautifully, uploads the right image and at times let me choose the image form the ones on the product page. At times though it will show no image, still a mystery to me why since they are all .jpg...LOL

I have it added as a share link cause I totally dislike that like box.

22 Jun 2014, 5:50 AM
#344
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Facebook Like Button

Is anyone monitoring this older version. I have it installed in my 1.3.9h store and it has changed a bit.

I have it installed and it has not been with the like stuff as others I click the link and it pops up a window with the information as before BUT then it is different.

I can no longer edit the blurb about the product, I can not edit the area where the name of the product is and it now only lets me use the main promotional image (I can lie with that one).

Is this something that FB managed to change or is it just the new way this plugin is working.

Aside from that it works wonderfully.

fantasiesrealm.com/market

choose any product to see what I mean

22 Jun 2014, 11:48 AM
#345
delia avatar

delia

Totally Zenned

Join Date:
May 2006
Location:
Gardiner, Maine
Posts:
2,383
Plugin Contributions:
7

Re: Facebook Like Button

That's not the facebook like button that's showing. The code for the like button is in your source but this is the code for the visible facebook link:

<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:32px;) no-repeat top left; }</style><a href="http://www.facebook.com/share.php?u=http://fantasiesrealm.com/market/index.php?cPath=34_36&" onclick="return fbs_click()" target="_blank" class="fb_share_link"><img src=http://fantasiesrealm.com/images/facebook.gif width="36" align="middle" hspace="10"><font size=+2>Share on FaceBook:  <strong>Stripes N Stuff Exclusive</a></font></strong><br/><br/></script>
22 Jun 2014, 12:22 PM
#346
darkangel avatar

darkangel

Totally Zenned

Join Date:
Oct 2007
Location:
Emporia, Kansas
Posts:
1,729
Plugin Contributions:
0

Re: Facebook Like Button

delia:

That's not the facebook like button that's showing. The code for the like button is in your source but this is the code for the visible facebook link:

<script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:32px;) no-repeat top left; }</style><a href="http://www.facebook.com/share.php?u=http://fantasiesrealm.com/market/index.php?cPath=34_36&" onclick="return fbs_click()" target="_blank" class="fb_share_link"><img src=http://fantasiesrealm.com/images/facebook.gif width="36" align="middle" hspace="10"><font size=+2>Share on FaceBook:  <strong>Stripes N Stuff Exclusive</a></font></strong><br/><br/></script>

Yes that was the way to not show the thumbs up like button which I detest ever so...LOL

but it is majorly your code that is installed and it has worked just like I described, allowing me to edit the box for the name and the description area, only lately it has changed to not be editable. Was not sure if it was the code from FB end, my code gotten changed (strange things have been happening at my store/server) or if it is the current updates to the browsers cause it is not browser specific, they all do it  this new way now.

I can live with it just was curious why.
11 Feb 2016, 8:01 PM
#347
danielosko avatar

danielosko

Zen Follower

Join Date:
Dec 2008
Location:
Hanover Township PA, USA
Posts:
122
Plugin Contributions:
0

Re: Facebook Like Button

Hello Everyone,

Does anyone know how I can get rid of the following text on my product info page, right next to my Facebook Like and Share buttons?

Be the first of your friends to like this.

and/or

Sign Up to see what your friends like.

Its causing havoc on my responsive template for 240 and 320 pixel width devices.

Any help, always appreciated,
Danny