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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With