architecture to Facebook-chat from a webpage, (XMPP? Strophe? Punjab?)

前端 未结 3 1682
傲寒
傲寒 2020-12-15 12:15

I would like to implement FB-chat inside a webpage. I looked around in Facebook API, i found out that chat is allowed only using XMPP. Firs

3条回答
  •  情话喂你
    2020-12-15 13:04

    Informations about facebook chat server :

    Protocol: XMPP or Jabber
    Username: mathvdh
    Domain: chat.facebook.com
    Jabber ID: mathvdh@chat.facebook.com
    Password: 
    Port: 5222
    Server: chat.facebook.com
    Use SSL/TLS: no
    Allow plaintext authentication: no
    

    I think strophe and punjab should be a working combination for fb chat, see here : XMPP library for facebook chat

    And I think the schema would be more like :

    client webpage/js/strophe <-> yourserver/punjab <-> facebook xmpp chat server

提交回复
热议问题