to permit facebook share on items I have updated the "item.php" template on com_k2 like this:
- Code: Select all
<div class="itemFacebookButton">
<script>...</script>
<div class="fb-like" data-width="150" data-layout="box_count" data-action="like" data-show-faces="false"></div>
</div>
<div class="itemFacebookButton">
<div class="fb-share-button" data-width="150" data-layout="box_count" data-action="share" data-show-faces="false"></div>
</div>
I realized that facebook social count is giving the total number and not just single values, # of shares for share button and # of likes for Like button
Going to https://api.facebook.com/method/links.getStats?urls=http://www.theyoungtheatre.com/blog/item/347-alessio-chiodini-a-marzo-nelle-produzioni-young-theatre&format=json
"share_count":3
"like_count":15
"comment_count":0
"total_count":18
While post shows:
Do you know how can I get sigle values for counts?
Thanks in advance