shareIt.js is a jQuery plugin that offers a quick and easy way to genreate share URL's for facebook, Twitter, and Pinterest. It uses minimal HTML markup as all that is required is an link tag.
To start using, you need two basic things:
The markup is a simple a creating link tags.
<a href="" id="facebook"> ... Link text/image ... </a>
<a href="" id="twitter"> ... Link text/image ... </a>
<a href="" id="pinterest"> ... Link text/image ... </a>
$('#facebook').shareIt(
share : "facebook", // needs to be set to facebook, twitter, or pinterest
img : "", // absolute image path
title: "", // title of shared item
description: "", // description of shared item
link: "" // link to shared item
);
- Released under MIT License