HomeArticles

Caring for Sharing: Social share URLs

Stefan Baumgartner

Stefan on Mastodon

More on HTML5

I truly hate social media share buttons. Especially those plugins which not only are coded badly but also create heavy traffic and performance issues. Plus, they're a pain in the ass to place correctly. If you really want to use (or have to use) those social liking/sharing/tweeting stuff, use their share URLs. Every single one of them has such, and you can either open them in a pop-up or in a new window. Here they are:

Twitter


  http://twitter.com/home?status=Check%20out%20{articleUrl}

Facebook


  http://www.facebook.com/sharer.php?u={articleUrl}

LinkedIn


http://www.linkedin.com/shareArticle?mini=true&url={articleUrl}
  &title={articleTitle}
  &summary={articleSummary}
  &source={articleSource}```

Google+


  https://plus.google.com/share?url={articleUrl}

Pinterest


http://pinterest.com/pin/create/button/?url={articleUrl}

Just replace {articleUrl} with the respective location.

More articles on HTML5