The “Hidden” Facebook Chat API June 11

A little over two months ago Facebook rolled-out it’s new integrated chat functionality.  My initial impression was “oh man, this is so awesome!”, but the novelty wore off after a few days.  Chatting inside a browser window is incredibly inconvenient; the flashing “New Message From [insert name here]” notification in the browser/tab title bar just isn’t enough to grab my attention when I’ve received a new message.  It’s a great concept, and a good way to keep in touch with the network that you’ve built, but I haven’t seen it get a lot of use since it was launched.  Every time I log into Facebook, I think to myself “if only there was a desktop client for FB chat…”.

It was brought to my attention today (thanks to a tweet by @ajvchuk) that the most recent beta version of Adium now supports Facebook chat.  Since then, I’ve discovered that Digsby added support almost a month ago.

Why is this so amazing you ask?  Well, because chat isn’t even included in the Facebook API!  I scoured the API documentation today looking for any mention of interacting with the chat system and came up empty handed.

It turns out that coderrr, a freelance Rails developer that apparently has no last name (it appears that he goes only by “Steve”), took it upon himself to “look under the hood at how its [the Facebook chat] protocol works”.  Steve discovered that it uses a combination of Comet and JSON for receiving messages and a simple POST for sending them.  He whipped up a quick proof-of-concept in Ruby and documented the findings on his blog.

I’m not sure how Digsby approached implementing Facebook chat (it was announced a few days before Steve’s blog post), but Adium took the work that he did and put it to use.  In good form, Adium developer Evan Schoenberg gave Steve credit for his discovery.

I don’t know about everyone else, but I think I’ll be using Facebook chat a lot more often now.  If only there was a way to completely disable the browser version of it…

Tags: , , , , , , , , ,

Comments


Amanda H Says:

Wow, that’s pretty schweet!
Also, totally unrelated….is that your apt in your Flickr photostream? ‘Cuz it also looks pretty sweet.

And, hi :)

Andrew Hite Says:

Thanks! That is my apartment. It’s actually a house. I love it.

Nik Smit Says:

Hey, thanks for the heads up on this - very interesting.

I wonder how Facebook feel about all this, and whether the net effect is to strengthen their community (through more interaction) or marginalize it (by becoming a commodotized platform).

N

Frank M Says:

i noticed that when i’m signed into facebook through adium, i can’t stay on facebook for more than a minute cuz it kicks me off. tell me if you see that too.

Andrew Hite Says:

Nik,

I would assume that Facebook won’t be too happy. Facebook Chat was a way to keep users on the site for an extended period of time. That translates to more money from advertisements. With the inclusion of FB chat in Adium, users will be circumventing the website and reducing the amount of ad exposure. I think that’s probably why they chose not to include it in the official API.

emily Says:

Yay! I found your blog :) I don’t know what half of the stuff you said means but I like it!

Leslie Says:

Nice picture
=D

Frankie Says:

How are you?! Please e-mail me your contacts. I have a question james@infansport.ru” rel=”nofollow”>……

Best regards….

Kostya Says:

Добрый день! jose@tehnon.ru” rel=”nofollow”>……

с ув….

Konstantin Says:

Добрый вечер! mason@sportbul.ru” rel=”nofollow”>……

С уважением,…

MAX Says:


PillSpot.org. Canadian Health&Care.Best quality drugs.Special Internet Prices.No prescription online pharmacy. Online Pharmacy. Order drugs online

Buy:Super Active ED Pack.Propecia.Viagra Super Active+.Zithromax.Tramadol.Cialis Super Active+.Viagra Professional.Viagra Super Force.VPXL.Viagra Soft Tabs.Cialis Soft Tabs.Cialis Professional.Cialis.Maxaman.Levitra.Viagra.Soma….

motorcycle Says:

Club http://hhangingtpz2.ABABYCLOTHES.INFO/tag/20+Club+motorcycle/ : motorcycle…

Club…

Leave a Comment