Very cool to see these aspects of Erlang being used in real world practical developement tasks. I've felt that other functional programming languages tended to be focused more towards academia, but it seems like the design of Erlang lends itself well to concurrent problems.
I did some UI work with the guys who made Qunu. They used similar techniques for in-browser chat: Erlang, "binding" via AJAX long polling. It was pretty advanced stuff at the time (3-4 years ago) - I believe other in-browser chat services like Meebo used polling.
I worked on a project similar to these and did a bit of research on existing solutions. If I remember correctly (I'm trying to find the document) Meebo uses a custom lighthttpd and does long polling.
I think that Facebook chat is one of the more audacious software engienering projects of recent time, simply because of the technical difficulty and almost simultaneous rollout to hundreds of millions of users.