Reputation: 11
I have a website that is registered as an app in Facebook. The website has a main page with many sub pages. Each of the pages has their own Like buttons. However, each of the pages show the same Like counts. All the pages show the same count as the website.
I have the following in my page(s) markup:
<meta property="og:description" content="Get the latest dates, events and happenings from the Dutch Hill PTA School Calendar." />
<meta property="fb:app_id" content="481535935203351" />
<meta property="og:title" content="School Calendar | Dutch Hill PTA" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.dutchhillpta.com/about/SchoolCalendar.aspx" />
<meta property="og:image" content="http://www.dutchhillpta.com/images/DutchHillPTA.jpg" />
<meta property="og:site_name" content="School Calendar | Dutch Hill PTA" />
<meta property="og:description" content="Get the latest dates, events and happenings from the Dutch Hill PTA School Calendar." />
<meta property="fb:admins" content="xxxxxxxxxxxx" />
This is what the facebook like button look like:
<div class="fb-like" data-href="http://www.dutchhillpta.com/about/SchoolCalendar.aspx" data-width="450" data-colorscheme="light" data-layout="standard" data-action="like" data-show-faces="true" data-send="true"></div>
I have tried to make sure that the data-href is unique for each page on the website. However that does not seem to matter as it only shows the counts for the main page.
Any idea? Thanks!
Upvotes: 1
Views: 318
Reputation: 46
If the html5 not working you could try iframe method like this :
<iframe src="//www.facebook.com/plugins/like.php?href= your unique link &width=450&height=35&colorscheme=light&layout=standard&action=like&show_faces=false&send=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowTransparency="true"></iframe>
or create your own here :
https://developers.facebook.com/docs/plugins/like-button/
If it does not work the problem could be the facebook connection.
Upvotes: 1