Skip to content

Vaibhav2103/social-share-count-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Share Count js

Get the social share counts from JavaScript Library

Demo Page

Demo

Table of contents

Quick start

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

What's included

dist/
  ├── social-share-count.js
  └── social-share-count.min.js

Usage

<script src="./social-share-count.min.js"></script>

Example

<p data-sc-fb="URL"></p>

API

In order to avoid cross domain constraint, JSONP communication is carried out.

Use API EndPoint

Facebook

https://graph.facebook.com/

Twitter

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.

Pocket

https://query.yahooapis.com/v1/public/yql

Use yahooapis service.

Pinterest

http://api.pinterest.com/v1/urls/count.json

Linkedin

http://www.linkedin.com/countserv/count/share

Hatena BookMark

http://api.b.st-hatena.com/entry.count

DOM Binding Type

Facebook

<p data-sc-fb="URL"></p>

Twitter

<p data-sc-tw="URL"></p>

Google+

<p data-sc-gp="URL"></p>

Pocket

<p data-sc-pk="URL"></p>

Pinterest

<p data-sc-pr="URL"></p>

Linkedin

<p data-sc-ln="URL"></p>

Hatena BookMark

<p data-sc-hb="URL"></p>

Develop

npm run start

Browser starts using browser-sync.

Open http://localhost:3000 in your browser.

Option

Copyright and license

License: MIT

Daisuke Takayama

Creators

Daisuke Takayama

About

Get the social share counts from JavaScript Library

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.1%
  • TypeScript 8.9%