Jump to content

Facebook Like button for domain in header.tpl and also another share buttons for product pages


simberak

Recommended Posts

Hello,

 

I am managing, how to have two facebook likes in my website and as the best set them different opengraph datas.

 

First like I have in header tpl. Which always likes the main domain and gather likes for main domain, the code is:

<div class="fb-like" data-href="http://www.sperkyleclay.cz" data-layout="button_count" data-action="like" data-size="small" data-show-faces="false" data-share="false"></div>

And then I have normal social sharing buttons at product pages.

 

The problem is, that the header like now want for likiing click to Accept and then the share window appear and you have to confirm the like as a share and there is no opengraph data loaded. In non product page it is normal, cause there is no og data in <head>, but even in product pages where the og data are in <head> the share window (Confirming like) is still without picture, description, title, there is just the url...

 

Can anybody help with this?

 

Thanks, Daniel

 

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