Blackbird script for your site: allow tweet embedding!

Posted: May 6th, 2010 | Author: | Filed under: hacking | Tags: , | View Comments

With 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/aL4QVGWed May 05 04:49:11 via publitweet.com

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′).


  • All the old tweets used to be http://twitter.com/blablablah, now most companies seem to have inhouse URL shortening services
    How do I insert a full url into the 'oven' before baking? pliz simplify

    @zambiaweb20, Mutimba

  • allikas

    Great idea! (Maybe in the future we can embed any kind of visual/textual data without using Flash, for instance, take a photo from real book and turn it automatically into embeddable and searchable code. )

  • For some reason the embed function doesn't work. I enjoy the blackbird bookmark though!

  • bookmarklets yay!

  • Great! The color on the link is to dark for my theme though...

  • I love this bookmarklet. Blogging about it. Thank you for being awesome.

  • Hi - will you be updating the bookmarklet or do we need to add the new line of code in each set of embed code?

blog comments powered by Disqus