Jabran Rafique edited this page May 29, 2015 · 10 revisions


socialmedia is a small library that makes is easy to use the JavaScript based Software Development Kits (SDKs) for various social media platforms. It provides easy to use setup and additional helper methods built around SDKs' native methods. At the moment, socialmedia supports following social media platforms:

  • Facebook
  • Twitter
  • Google Plus
  • Pinterest

Here is a quick example to setup Twitter SDK:

Default setup:

var js,fjs=d.getElementsByTagName(s)[0],
fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');

Socialmedia setup:

new Socialmedia.Twitter();

Both setup will expose the default objects and methods to the environment as well as some addition helper methods by socialmedia. See further sections in documentation for complete details on these helper methods.

Next: Installation


You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.