Social widgets
Likes, shares and things like that.
Table Of Contents
- share
- count-shares (JSON with number of shares)
share
Example: https://facebook.com/sharer/sharer.php?u=http://google.com
count-shares
Returns JSON with a number of shares for a page.
{
"facebook": 5461703,
"twitter": 11876867,
"vk": 2462,
"odnoklassniki": 547,
"pinterest": 60,
"linkedin": 18113
}
JavaScript (node.js)
npm install count-shares
PHP
API
Example: /shares/php/main.php?url=http://www.google.com&networks=facebook,twitter
url (required)
www.domain.com
and domain.com
are different websites for Twitter and Odnoklassniki.
networks
Comma separated. facebook
, twitter
, linkedin
, pinterest
, vk
or odnoklassniki
.
Default: Facebook and Twitter.