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


PHP – 8.0 Match Expression

In PHP 8.0 there is a new feature or I should say a new language construct (keyword) going to be introduced,  which has been implemented depending […]


New Union Type in PHP – 8

A new RFC has been finished voting and accepted for PHP – 8. That is “Union Types”, which is an extension of PHP’s type system. […]