del.icio.us .:. stumble .:. digg

Prototype Identica Badge .:. kentbrewster.com

As it says on the About page, Identi.ca is a micro-blogging service based on the Free Software Laconica tool.

For more about the project, see Marshal Kirkpatrick's Identi.ca: May A Million Twitters Bloom, Hugh McGuire's Why Identi.ca Matters, and Edd Dumbill's Why Identi.ca is Important. Personally I'm thrilled by the idea and encouraged by its execution so far, and have been poking cautiously at Laconica for the past couple of weeks, hoping to contribute in whatever way I can. Here's a prototype badge, based on Laconica's RSS feeds and Yahoo! Pipes.

If you see an author's name in a post, click it to explore his or her friends' posts. To visit the author's identi.ca page, click the top link, to so-and-so with friends.

To try this yourself, copy and paste the following wherever you want the badge to show up:

<script type="text/javascript" src="http://kentbrewster.com/js/identica-badge.js">
{
   "user":"kentbrew",
   "server":"identi.ca",
   "headerText":" and friends"
}
</script>

Substitute your own ID in the user parameter; many of the other parameters available in Twitterati will also work.

Although we're waiting for the real API, if you find a working Laconica server that forms its RSS urls the way identi.ca does, the badge should work unmodified if you substitute the server name of your choice for identi.ca in the second parameter.

Working through kinks in the real API now ... so far, so good. More to come!

Please keep in mind that this badge will change radically once the API goes live, and will hopefully be hosted by the project. I don't mind if you try it out, but please host your own copy if you put it in production anywhere.

For background information about how badges like this one work, please see Case-Hardened Web Badges, which I presented at Web 2.0 earlier this year.

Have fun, and please let me know how it goes!

Post a Comment

Kent Brewster .:. 20080807093403
Credit looks good, Nik, thanks! Um, you should probably grab a fresh copy of the code; any link inside the badge from 7/19 that went to the server--identi.ca, in the example--were broken, including the favicon in the main header and all links inside any status updates.

I've also added some brute-force code to make absolutely certain all styles are applied inside the badge; please check that it does what you want it to do before putting it into production.
Nik Smit .:. 20080807053410
Thanks Kent - great widget, which we're using on retaggr.com. Hopefully complied with your licensing requirements, if not please holler. Thanks again.
Kent Brewster .:. 20080717073908
Stav: sorry, MySpace won't let you post JavaScript on your page for security reasons.
Stav .:. 20080716193229
I copied and pasted into myspace profile, changed "user" parameter to stav, but it did not work. myspace auto wiped the first and last lines and replaced with ..
Manny .:. 20080716170048
Thats pretty bad ass Kent!
Kent Brewster .:. 20080714153638
We have avatars, after a fashion. I still recommend folks hold off until the official API launches before installing this guy; there's no telling what might happen.

I've also added a server parameter; in the event a Laconica installation launches that exactly mirrors what identi.ca does with RSS feeds appears, this badge should work unchanged except for the new server. (So far I haven't seen any; would appreciate pointers, if they exist.)
Kent Brewster .:. 20080707083126
I'd strongly recommend holding off until the Laconica API appears, Neal. But if you absolutely can't stand it, take a look at this pipe:

http://pipes.yahoo.com/kentbrew/identica_withFriends

I've abstracted out the base URL into input variable B; you'll want to add the full path to the user's RSS feed. I'm not exactly sure what this looks like, since there aren't that many Laconica installs available to tinker with. Identica looks like this:

http:///identi.ca/author/rss/all

... so I need to pass the base URL to B and add the author's nickname, "rss", and "all" as part of the path. If your Laconica installation has pretty URLs like this, you're good to go.

When I look at Les Orchard's install, I see paths that look like this:

http://lmorchard.com/laconica/index.php?action=allrss&nickname=author

... so I would need to clone the original pipe (which I should have named after Laconica anyway, bad developer!) and modify it to take the base URL and add the action and nickname in the query section, not the path.
Neal Locke .:. 20080707071831
Looks great! Is there a way to use this with other installs of laconica? That would be supremely useful...
Kent Brewster .:. 20080704175354
Thanks for testing, you guys. Matt: see my rights and permissions page; all original code is released under CC-BY-SA-3.

Everybody please keep in mind that this is a prototype, and will most definitely be moved over to a different host (probably r8ar.com) if Even and team don't want to host it on identi.ca.
matt lee .:. 20080704165712
using this on my blog. working well so far.

license?
Tabrez Iqbal .:. 20080704120435
Nice work! Gonna test it...

Copyright Kent Brewster 1987-2008 .:. FAQ .:. RSS .:. Contact