0

Facebook Share and Like Conflicts

A few days ago I’ve developed a site with Facebook share and Like button but I’ve noticed that Facebook share button is not working and after the Google search I’ve found that Facebook share button conflicts with Facebook like button on the same page. So I’ve added the Facebook share button on a different file and then added this file in to my main page. To do this I’ve created a static html file (fb_share.html) and in this file I’ve added Facebook share button and then I’ve added this file in to my main file (e.g. footer.php) using an iframe.
Create a file (fb_share.html) to add share button

Add this code snippet where you want to show the share button

It works fine without any problems. Hope this will help somebody.

Latest Blog