Facebook Likes and shares are getting the total count

Professionally designed and responsive events Joomla template to launch your event based website.
GK User
Wed Dec 03, 2014 11:52 pm
Hello,
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:
Image
Do you know how can I get sigle values for counts?
Thanks in advance
User avatar
Junior Boarder

GK User
Thu Dec 04, 2014 7:09 am
I'm afraid you cant without creating custom facebook application that will connect via opengraph, download this info and print it on your site with custom styling.
User avatar
Moderator


cron