Facebook XMPP Chat API send Message PHP

前端 未结 2 1477
小蘑菇
小蘑菇 2021-01-05 04:07

I am currently messing about with the Facebook Chat API. I want to send chat messages to my facebook contacts via an App.

Using the example provided by facebook I wa

2条回答
  •  春和景丽
    2021-01-05 04:34

    You should send to socket command with your message. Common message format is

    
        message body
    
    

    So before comment "we made it!" insert function call send_xml with your message template

    send_xml($fp, $MESSAGE);
    if (!find_xmpp($fp, 'BODY')) {
        return false;
    }
    

提交回复
热议问题