Blackbird script for your site: allow tweet embedding!
Posted: May 6th, 2010 | Author: Xavier | Filed under: hacking | Tags: embed, twitter | View CommentsWith the Publitweet Blackbird bookmarklet we released yesterday you can grab any tweet on Twitter.com and embed a static HTML version on your site in no time.
Today we release a version for your site, to turn the tweets you have embedded, embeddable in turn!
Even better, people who will embed the tweet from your site will see that it comes from there as a source! How cool is that?
See an example:
Just released a bookmarklet for Twitter Blackbird. Get the HTML code of a tweet in 3 steps instead of 9! http://bit.ly/aL4QVG
How does the magic work?
Well you just have to add this line at the end of your page (typically in your footer, just before </body>):
<script src='http://publitweet.com/blackbird/javascript.js'></script>
I already have tweets displayed on my site, how can I make them embeddable?
Just add a link like this one: <a href="javascript:publitweetGetEmbedCode('http://twitter.com/xdamman/statuses/13407123815');">embed this tweet</a>
Alternatively you can also replace the tweet permalink with just its id (ie. the latest part of the permalink: ’13407123815′).
