Skip to content

Share counter

To display share count, just add data-counter attribute to HTML element, that will contain numbers. For example:

1
2
3
4
5
6
<!-- Create link with share to Facebook and counter -->

<a href="#" data-social="facebook">
  Share this to Facebook
  <span data-counter="facebook"></span>
</a>

Note: You also may put this attribute to any element.

Social networks, that have share counters

How to get Twitter share counter after API 1.1 changes?

Simple solution for only single domain: OpenShareCount project.