To share a link on twitter just make a link like this (obviously replace <message> with the message you want the person to tweet):
http://twitter.com/?status=<message>
To share something on facebook, just make a link like this:
<a href="javascript:var%20d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1254161036&u='+e(l.href)+'&t='+e(d.title);1;try{if%20(!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z)%20{a=function()%20{if%20(!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if%20(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)">Share on Facebook</a>
You can copy/paste the facebook link - it uses javascript to detect the url of the page you are on. If you want to replace the url with a different one, just change e(l.href)
to e('your_url_here')
Social Share urls
Posted on
Monday, September 28, 2009