What is Facebook's IM server Address and Port?

19,642

Solution 1

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

Solution 2

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.

Solution 3

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.

Share:
19,642
Kumar
Author by

Kumar

Updated on September 04, 2022

Comments

  • Kumar
    Kumar almost 2 years

    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?

    • David Hedlund
      David Hedlund over 14 years
      if you only want to know the host and port for facebooks im server (which has nothing to do with android) you might want to change your title and tags to ask for what you actually want to know. especially the android-tag will probably get a lot of people who potentionally might know this, to not read the question, because they're not into android. also, there's a lot to "how to create IM client" that is not about knowing which server to connect to. I think you might scare people away by chooseing title and tags that looks like you're asking for help with a thousand lines of android code =)
    • Dipali
      Dipali about 12 years
      You can refer this stackoverflow.com/a/11238124/1472665 answer, which can solve your problem.
  • Christopher Orr
    Christopher Orr over 14 years
    Or now that they officially support XMPP, it's much simpler.
  • Halvor Holsten Strand
    Halvor Holsten Strand over 9 years
    This has already been stated several times, and adds nothing. Upvoting the similar answers would be the proper way of indicating what is a good solution.