Pregunta

Me han pedido que integre Facebook Chat a mi aplicación usando solo JavaScript.No puedo usar la autenticación de la plataforma de Facebook, ya que necesita una URL de dominio.Por lo tanto, mi opción es configurar un XMPP Cliente de chat usando strophe.js a través de un Digest MD5 sasl mecanismo.

Con respecto a Bosh Connect Manager, http://bosh.metajack.im:5280/xmpp-httpbind.¿Esto es suficiente o debería configurarlo en mi servidor?Estoy usando el Tomcat servidor.

¿Fue útil?

Solución

Facebook does not do S2S federation, only C2S, so you will have to use that as your XMPP server (or implement something like XEP-0100 at your server). Facebook does not currently support BOSH, AFAIK.

Otros consejos

from http://developers.facebook.com/docs/chat/

The DIGEST-MD5 SASL mechanism is available to support traditional XMPP or multi-protocol IM clients that are not customized for (or even aware of) Facebook. This mechanism requires prompting the user for his or her password; therefore, it should only be used when necessary. In particular, it MUST NOT be used for any client that:

•Proxies the XMPP connection (the connection must be directly from the user's computer to Facebook).

•Reports messages or any other information about user activity to a third party (including the client developer).

•Integrates with Facebook, or has a Facebook Application ID. If your application does any of the above, you must use Facebook Platform authentication instead.

So, you can't use DIGEST-MD5 with a bosh server but you must use X-FACEBOOK-PLATFORM

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top