Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook XMPP chat API - device priority

I've created a Facebook app that uses the chat api using the following structure

Strophe.js <-- --> Punjab <-- --> Facebook XMPP

All works fine. My question is: Can I prevent other clients receiving messages once my app is connected?

to elaborate: if a user starts using my app to communicate he should not receive replies at the normal facebook chat ui.

Can this be done?

like image 592
Shlomi Schwartz Avatar asked Jan 24 '13 10:01

Shlomi Schwartz


1 Answers

I don't believe this is possible. You could test it using Pidgin via its XMPP console.

The developer docs for chat lists supported features & has a section on limitations, which begins:

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: ...

Because of this you shouldn't expect the in-browser Facebook Chat clients to behave like XMPP-compliant clients.

like image 95
Richard Barnett Avatar answered Nov 05 '22 18:11

Richard Barnett