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:
Because of this you shouldn’t expect the in-browser Facebook Chat clients to behave like XMPP-compliant clients.