Question

I want to use ejabberd for xmpp proxy with Facebook Chat

It already work but unfornunately when i ask for authentication with chat.facebook.com the X-FACEBOOK-PLATFORM mechanism is not possible

This is facebook answer for mechanism :

<mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism>

The complet facebook answer :

<body xmlns='http://jabber.org/protocol/httpbind' xmlns:xmpp='urn:xmpp:xbosh' xmlns:stream='http://etherx.jabber.org/streams' sid='XXX' wait='300' requests='2' inactivity='30' maxpause='120' polling='2' ver='1.6' from='chat.facebook.com' secure='true' authid='433584819' xmpp:version='1.0'>
    <stream:features xmlns:stream='http://etherx.jabber.org/streams'>
        <mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
            <mechanism>DIGEST-MD5</mechanism>
            <mechanism>PLAIN</mechanism>
        </mechanisms>
        <register xmlns='http://jabber.org/features/iq-register'/>
    </stream:features>
</body>

Do you know why the X-FACEBOOK-PLATFORM mechanism is not in the list ?

Thank you

Was it helpful?

Solution

AFAIK ejabberd does not support routing in BOSH. You can only connect to the XMPP domains hosted on your ejabberd sever over BOSH. What you need is a BOSH connection manager like Punjab.

Alex

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top