Get the social share counts from JavaScript Library
Clone the repo:
git clone [email protected]:webcyou/social-share-count-js.git
Install with Bower:
bower install social-share-count-js
Install with npm:
npm install social-share-count-js
dist/
├── social-share-count.js
└── social-share-count.min.js
<script src="./social-share-count.min.js"></script>
Example
<p data-sc-fb="URL"></p>
In order to avoid cross domain constraint, JSONP communication is carried out.
Use API EndPoint
https://graph.facebook.com/
https://jsoon.digitiminimi.com/twitter/count.json
Use count.jsoonservice.
Registration of count.jsoon service is mandatory.
Google+
https://count.donreach.com/
Use donreachservice.
Set Google API KEY (POST)
https://clients6.google.com/rpc
Deprecated as the keys are exposed.
https://query.yahooapis.com/v1/public/yql
Use yahooapis service.
http://api.pinterest.com/v1/urls/count.json
http://www.linkedin.com/countserv/count/share
Hatena BookMark
http://api.b.st-hatena.com/entry.count
<p data-sc-fb="URL"></p>
<p data-sc-tw="URL"></p>
Google+
<p data-sc-gp="URL"></p>
<p data-sc-pk="URL"></p>
<p data-sc-pr="URL"></p>
<p data-sc-ln="URL"></p>
Hatena BookMark
<p data-sc-hb="URL"></p>
npm run start
Browser starts using browser-sync.
Open http://localhost:3000 in your browser.
Daisuke Takayama