Example code to go with my blog post on how to connect to facebook chat with your own webclient