Wednesday, June 02, 2010

You probably haven't noticed, but I changed the 'like this on facebook' link at the bottom of each post to a much more useful 'share this link on facebook'.  Just recently, Posterous added the option to add the facebook 'like' link to posts, but it's not very functional (in that when it shows up on facebook, you can't add your own text to the post, it doesn't post any photos, and you can't easily share it on your wall or send it as a message to a friend).  It also doesn't show up in news feeds of your friends.

Well, after a bit of tinkering, and combining a few bits of code from here and there (can't remember where I found it, somewhere on Google), I managed to get it to work quite well.

If you're using posterous and have a custom theme, chuck this code somewhere in your {block:Posts} section (just replace the existing facebook code if you don't want that anymore).

<href="http://www.facebook.com/sharer.php?u={Permalink}&t={block:Title}{Title}{/block:Title} - {Title}"><img src="http://www.sharingbuttons.org/w/images/a/ad/Facebook.gif"
 class="icon" style="vertical-align: middle; position: relative; top: -2px;" />Share this on facebook.</a>

Posted via email from Kasposterous

Labels: , , , , , , , , , , , ,

0 Comments:

Post a Comment

<< Home