Sharing content on social networks without Javascript

I’m often asked how add share links without using javascript (for example, in an HTML email or in a PDF). Here are the URLs for the most common ones:

  • Pinterest: http://pinterest.com/pin/create/button/?url={articleUrl}&description={articleTitle}
  • LinkedIn: http://www.linkedin.com/shareArticle?mini=true&url={articleUrl}&title={articleTitle}&summary={articleSummary}&source={articleSource}
  • Facebook: http://www.facebook.com/sharer.php?s=100&p[title]={articleTitle}&p[summary]={articleSummary}&p[url]={articleUrl}
  • Twitter: http://twitter.com/share?text={articleSummary}&url={articleUrl}
  • Google+: https://plus.google.com/share?url={articleUrl}
  • Tumblr: https://www.tumblr.com/share?v=3&u={articleUrl}&t={articleTitle}
  • Mail to: mailto:?subject={articleTitle}&body={articleSummary}%20(full%20article%20at%20{articleUrl})

Replace {articleUrl}, {articleTitle}, and {articleSummary} with the appropriate content for your link. Make sure you url encode the values you’re passing. If you don’t have a text editor that can do that for you, use Eric Meyer’s URL Decoder/Encoder.

Comments are closed here.