Stefan Baumgartner

Web ops, performance and front-end

Caring for Sharing: Social share URLs

17 June 2013 by @ddprrt | Posted in: 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}
  &media={articleImage}

Just replace {articleUrl} with the respective location.

Comments? Shoot me a tweet!