Skip to content

Instantly share code, notes, and snippets.

@erin-dot-io
Last active April 20, 2016 23:30
Show Gist options
  • Save erin-dot-io/801be4cbeac9468c1640 to your computer and use it in GitHub Desktop.
Save erin-dot-io/801be4cbeac9468c1640 to your computer and use it in GitHub Desktop.
Custom share service URLs

Twitter

http://twitter.com/intent/tweet?text=[TITLE]&url=[URL]&hashtags=[TAG,TAG]&via=[USERNAME]&related=[twitter%3ATwitter%20News,twitterapi%3ATwitter%20API%20News] [more options]

Pinterest

http://pinterest.com/pin/create/button/?url={URI-encoded URL of the page to pin}&media={URI-encoded URL of the image to pin}&description={optional URI-encoded description}

Pinterest (custom image):

<a href='javascript:void((function()%7Bvar%20e=document.createElement(&apos;script&apos;);e.setAttribute(&apos;type&apos;,&apos;text/javascript&apos;);e.setAttribute(&apos;charset&apos;,&apos;UTF-8&apos;);e.setAttribute(&apos;src&apos;,&apos;http://assets.pinterest.com/js/pinmarklet.js?r=&apos;+Math.random()*99999999);document.body.appendChild(e)%7D)());'><img src='http://www.brandaiddesignco.com/insights/PinIt.png'/></a>

Digg

http://www.digg.com/submit?phase=2&url=[URL]&title=[TITLE]

Facebook

http://www.facebook.com/share.php?u=[URL]&title=[TITLE]

StumbleUpon:

http://www.stumbleupon.com/submit?url=[URL]&title=[TITLE]

Delicious

http://del.icio.us/post?url=[URL]&title=[TITLE]]&notes=[DESCRIPTION]

Linkedin

http://www.linkedin.com/shareArticle?url=[URL]&title=[TITLE]&source=[SOURCE/DOMAIN]

Slashdot

http://slashdot.org/bookmark.pl?url=[URL]&title=[TITLE]

Technorati

http://technorati.com/faves?add=[URL]&title=[TITLE]

Tumblr

http://www.tumblr.com/share?v=3&u=[URL]&t=[TITLE]

Reddit

http://www.reddit.com/submit?url=[URL]&title=[TITLE]

Google Bookmarks

http://www.google.com/bookmarks/mark?op=edit&bkmk=[URL]&title=[title]&annotation=[DESCRIPTION]

Newsvine

http://www.newsvine.com/_tools/seed&save?u=[URL]&h=[TITLE]

Ping.fm

http://ping.fm/ref/?link=[URL]&title=[TITLE]&body=[DESCRIPTION]

Evernote

http://www.evernote.com/clip.action?url=[URL]&title=[TITLE]

Google+

https://plus.google.com/share?url=[URL]

Open in new window example:

<a href="http://www.facebook.com/sharer/sharer.php?u={{ site_url + url(item) }}" onclick="window.open('http://www.facebook.com/sharer/sharer.php?u={{ site_url + url(item) }}', 'newwindow', 'width=650, height=382'); return false;">Share to Facebook</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment