With the announcement Facebook as made about opening up their chat service to outside connections, several developers are taking the opportunity to create their own scripts to interface with the service. One developer, Abhinav Singh has posted a tutorial about the sample application he's created to do just that.
Today facebook officially announced availability of it’s chat through jabber/xmpp clients. This is a big win for XMPP, with almost 400 million new probable users adding into XMPP club. In this post, I will demonstrate how to connect to facebook chat servers using Jaxl client library in PHP. It can further be used to make custom chat bots for facebook.
He shows how to use the Jaxl library to make the connection, setting up some basic environment variables and making the connection to the server. The index.php file that comes with the library reads this config file and sends a default message to the server and returns the response.