I am trying to write a script in python to connect to facebook chat. I am just not able to. Here is the code:

```
import xmpp
FACEBOOK_ID = "firesofmay@chat.facebook.com"
PASS = "password"

jid=xmpp.protocol.JID(FACEBOOK_ID)

C=xmpp.Client(jid.getDomain(),debug=['always'])

if not C.connect(("chat.facebook.com",5222)):
    raise IOError('Can not connect to server.')

if not C.auth(jid.getNode(),PASS):
    raise IOError('Can not auth with server.')

C.send(xmpp.protocol.Message("gmjain@chat.facebook.com","Hello world from script",))

```

This is the error I get:

```
An error occurred while looking up _xmpp-client._tcp.chat.facebook.com

```

And this is the debugger output [here](http://pastebin.com/XFQNncCk).

Which shows that I do get authenticated (Line 136) , but still the message is not sent somehow. I am really stuck at this for days now.