Jump to content

Facebook like button - linking it to FB page


Recommended Posts

Hi there Prestashoppers,

 

 

I've installed the following module:

http://www.presto-changeo.com/nl/prestashop-free-modules/45-facebook-like-button.html

 

It places a FB Like button on each product page, and i've also added that same button (with a hook) to my menu. However, i'd like to link this Like button to the FB page i'm planning to run (FB.com/mywebshop), so if someone likes via my webshop, it adds the like to the same page as a Like via FB would.

 

My current shop: http://www.smartphonehandschoenen.nl/nl/

 

Is this possible? Is it possible with this module?

 

I've also seen the "Box modules" where you can actually see pictures of people liking, I'm not a fan of that, however that does seem to be more what i'm looking for..

 

 

Kind regards,

Dave

Link to comment
Share on other sites

I think i've solved it;

 

What makes up the number shown on my Like button?

The number shown is the sum of:

  • The number of likes of this URL
  • The number of shares of this URL (this includes copy/pasting a link back to Facebook)
  • The number of likes and comments on stories on Facebook about this URL

This means a product page only gets likes for that product, i'm OK with that. The Like button in my menu needs to count all likes regarding my base URL name, so what I did:

 

1. I kept the regular addon as it is (this adds the base code that needs to be somewhere on your shop, in the header or whatever, addon takes care of this).

2. I downloaded the customized code from FB page: http://developers.facebook.com/docs/reference/plugins/like/ - important part: "URL to Like"

<div class="fb-like" data-href="http://www.smartphonehandschoenen.nl" data-send="false" data-layout="button_count" data-width="300" data-show-faces="false" data-font="segoe ui"></div>

3. I put that code in blockcart.tpl (modules/blockcart).

 

Considering the URL is in my FB fanpage, I hope it connects those two.

 

If anyone has comments or suggestions i'd still like to hear them!

 

Cheers,

Dave

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...