views:

682

answers:

4

I would like to create my own chat client for facebook IM in Android. I created xmpp jabber protocol in java but i dont know the host name and port number of Facebook IM server. Can any one let me know the Facebook's IM server host name and port number to communicate.

A: 

As far as I am aware Facebook doesn't use the jabber protocol for its chat. My guess is that it wouldn't make any sense for them to since they offer it as an AJAX application within the Facebook website so the traffic is going to HTTP/HTTPS and not XMPP.

Interaction with Facebook is through the Facebook APIs. Unfortunately, there is no official API for Chat.

Some people have done some work reverse engineering Facebook Chat so you might have some luck there.

Dave Webb
A: 

I have done some work with parsing Facebook chat, and it is done in cleartext in the the form of Erlang Tuples. Get a copy of wireshark and you can easily see the traffic passed back a forth.

Hortinstein
Or now that they officially support XMPP, it's much simpler.
Christopher
+2  A: 

Facebook Chat now supports (limited) XMPP. The server name is chat.facebook.com and the port number is 5222 as per usual.

Cheers,

Eki

Eki
A: 

First, download Smack (XMPP client library for Java). Facebook XMPP Server is: chat.facebook.com, port = 5222

Facebook Chat fully support XMPP so you can see how conversation is done using XMPP and smack and add Facebook to it.

The Elite Gentleman