Skip to content

Instantly share code, notes, and snippets.

@vadimdemedes
Created March 22, 2013 13:05
Show Gist options
  • Save vadimdemedes/5221097 to your computer and use it in GitHub Desktop.
Save vadimdemedes/5221097 to your computer and use it in GitHub Desktop.
Generating social sharing links
var share = new Chute.Share({
url: 'http://my-website.com/about',
text: 'Check out my new website!'
});
var links = share.generate();
/*
links = {
twitter: 'URL',
facebook: 'URL',
pinterest: 'URL',
tumblr: 'URL'
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment