Skip to content

rktaiwala/social-share-urls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Social Share URLs

This is intended to help you share your content on all the popular social networks.

Supported Social Networks

URL Arguments

Argument Description Used By
{url} The url you want to share (encoded) All
{img} The image/thumbnail to use when sharing Most
{title} The page title of the url you want to share Most
{desc} A longer description of the content you are sharing Most
{app_id} The App ID Facebook
{redirect_url} The url a sharer will be redirected to after a successful share Facebook
{via} optional Twitter username of content author (don't include "@") Twitter
{hashtags} optional Hashtags appended onto the tweet (comma separated. don't include "#") Twitter
{provider} Company who is sharing the url Delicious
{is_video} If the content is a video or not Pinterest

Facebook

Facebook has two methods of sharing. The "Sharer" link is simple but the preferred Facebook way is using the Share Dialog. This method does require an app id but offers more flexibility.

Sharer:

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

Share Dialog:

https://www.facebook.com/dialog/share?app_id={app_id}&display=page&href={url}&redirect_uri={redirect_url}

Twitter

https://twitter.com/share?url={url}&text={title}&via={via}&hashtags={hashtags}

Google+

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

Pinterest

https://pinterest.com/pin/create/bookmarklet/?media={img}&url={url}&is_video={is_video}&description={title}

Linked In

http://www.linkedin.com/shareArticle?url={url}&title={title}

Buffer

http://bufferapp.com/add?text={title}&url={url}

Digg

http://digg.com/submit?url={url}&title={title}

Tumblr

https://www.tumblr.com/widgets/share/tool?canonicalUrl={url}&title={title}&caption={desc}

Reddit

http://reddit.com/submit?url={url}&title={title}

StumbleUpon

http://www.stumbleupon.com/submit?url={url}&title={title}

Delicious

https://delicious.com/save?v=5&provider={provider}&noui&jump=close&url={url}&title={title}

About

Social Share URLs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 43.7%
  • JavaScript 35.4%
  • HTML 20.9%