Giter Site home page Giter Site logo

social-widgets's Introduction

Social widgets

Likes, shares and things like that.

Table Of Contents

share

Example: https://facebook.com/sharer/sharer.php?u=http://google.com

Network URL Documentation
Facebook https://facebook.com/sharer/sharer.php?u={{LINK}}
Twitter http://twitter.com/share?url={{LINK}}
Twitter https://twitter.com/intent/tweet?url={{LINK}}
Google Plus https://plus.google.com/share?url={{LINK}} link
Linked In http://www.linkedin.com/shareArticle?url={{LINK}} link
VK http://vkontakte.ru/share.php?url={{LINK}} link
Odnoklassniki http://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl={{LINK}}
Yandex http://share.yandex.ru/go.xml?service=yaru&url={{LINK}}&title={{TITLE}}&body={{TEXT}}
Livejournal http://www.livejournal.com/update.bml?subject={{TITLE}}&event={{TEXT}}&prop_taglist={{TAGS}}&href={{LINK}}

count-shares

Returns JSON with a number of shares for a page.

{
    "facebook": 5461703,
    "twitter": 11876867,
    "vk": 2462,
    "odnoklassniki": 547,
    "linkedin": 18113
}

JavaScript (node.js)

npm install count-shares

See README here.

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, vk or odnoklassniki.

Default: Facebook and Twitter.

social-widgets's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.