Take the 2-minute tour ×

When changing the presence in Browser (offline/online) in Facebook Chat, the chat system sends the XMPP message in form:

<presence to="-myidhere@chat.facebook.com/adfskjfskjdfh" from="-otheridhere@chat.facebook.com" type="unavailable">

When I send my own presence from non-browser side (xmpp client) to the browser side with exactly same syntax, it seem not to effect. What I am missing here ?

Thanks a lot, -Mika

share|improve this question
What do you mean? What are you trying to do? –  Nitzan Tomer Jun 4 '12 at 10:50
Managed not to escape my XML, sorry. Anyways I do have own XMPP client which I want to use to send <presence from="myownclient" to="chat client through browser" type="unavailable"> so the Facebook side browser chat client would notice my own chat client to be unavailable. –  Mika Saari Jun 4 '12 at 11:00
I see. And do you get an error when sending this presence or it's just ignored? –  Nitzan Tomer Jun 4 '12 at 11:11
I do not get any response from the server side. I am using same jid(s) for sending chat status stanzas and also messages which seem to work nicely, just the presence has problems. –  Mika Saari Jun 4 '12 at 11:18

1 Answer 1

It seems like you can't do that with the facebook xmpp implementation, as they write in the documentation:

Facebook Chat should be compatible with every XMPP client, but is not a full XMPP server. It should be thought of as a proxy into the world of Facebook Chat on www.facebook.com. As a result, it has several behaviors that differ slightly from what you would expect from a traditional XMPP service

There's an open bug on this matter: XMPP: can't change availability, and also this thread also talks about it: Xmpp chat invisible presence.

Also, don't expect the fb apis to have the same functionality as you get using the fb webpage.
They obviously don't open everything they have to the apis.

share|improve this answer
I checked as well the Chat API documentation and feared that the presence part is not working both ways same kind. Need to think some other ways to accomplish same effect somehow. Thanks a lot for answer! –  Mika Saari Jun 4 '12 at 11:36

Your Answer


