There are many tools out there for sharing links with social networking sites like Twitter, del.ico.us, facebook and so on. The problem is, it seems they all use JavaScript. I started poking around to figure out how to easily generate my own links without the use of javascript. I needed to make links to be used in a marketing email and I didn’t want to have to use any javascript to do it. I couldn’t find a single resource to help me out. After some digging, I figured out the url variables for a few popular social networking sites. Here is what I found. Enjoy.
Note: If you are just looking for a simple widget to add to your blog or website, I recommend AddThis or TellAFriend.
Twitter
How To: Just append the twitter url with the variable ‘status’ and tweet any text and urls you want. Try it. Example code:
http://twitter.com/home?status=create+links+for+social+networking+sites+http://www.angrypirate.com/wordpress/2009/04/22/how-to-generate-links-for-social-networking-sites
Facebook
How To: Append the following facebook url with the url you want to share Try it. Example code:
http://www.facebook.com/share.php?u=http://angrypirate.com/wordpress/2009/04/22/how-to-generate-links-for-social-networking-sites/
Google Bookmarks
How To: Google Bookmarks has variables for the url (bkmk=), title (title=), and description (annotation=) so you can include a snippet of text Try it. Example code:
http://www.google.com/bookmarks/mark?op=edit&bkmk=http://angrypirate.com/wordpress/2009/04/22/how-to-generate-links-for-social-networking-sites/&title=create+links+for+social+networking+sites&labels=dog,ohs&annotation=Iâ??ve been having trouble getting Mississippi to go in her crate. She obviously was punished by being put in a crate. It seemed she just wonâ??t go in the thing no matter how good the reward...
mySpace
How To: Add link and title by using u= and t=. Try it. Example code:
http://www.myspace.com/Modules/PostTo/Pages/?l=3&u=http://angrypirate.com/wordpress/2009/04/22/how-to-generate-links-for-social-networking-sites/&t=create+links+for+social+networking+sites
Digg
How To: Digg uses url= and title= variables. Try it. Example code:
http://digg.com/submit?phase=2&url=http://angrypirate.com/wordpress/2009/04/22/how-to-generate-links-for-social-networking-sites/&title=create+links+for+social+networking+sites
reddit
How To: reddit uses url= and title= variables. Try it. Example code:
http://angrypirate.com/wordpress/2009/04/22/how-to-generate-links-for-social-networking-sites/&title=create+links+for+social+networking+sites
StumbleUpon
How To: reddit uses a url= variable. Wasn’t able to find any other variables for adding title or other field values. Try it. Example code:
http://www.stumbleupon.com/submit?url=http://angrypirate.com/wordpress/2009/04/22/how-to-generate-links-for-social-networking-sites
Del.ico.us
How To: del.ico.us uses url= and title= variables. Try it. Example code:
http://del.icio.us/post?url=http://angrypirate.com/wordpress/2009/04/22/how-to-generate-links-for-social-networking-sites/&title=create+links+for+social+networking+sites