How can I get fb: chat-invite functionality using facebook javascript sdk or xfbml

From this forum entry, it seems that fb: chat-invite is not a valid xfbml tag, so you need to use serverfbml to use it. However testing

<fb:serverfbml>
  <script type="text/fbml">
    <fb:date t="1216170865" format="long_numeric" /> hello again
  </script>
</fb:serverfbml>

leads to

<fb:serverfbml> requires the "fbml" attribute.

So, how do you get the fb: chat-invite functionality when using the xfbml and javascript SDK. Is there a way to use fbml with the FB.ui dialog? If so, how will it work.

Pointers appreciated.

+3
source share
1 answer

In the above example, it should read:

<fb:serverFbml style="width: 755px;">  
     <script type="text/fbml">
        <fb:fbml>
            <fb:date t="1216170865" format="long_numeric" /> hello again
        </fb:fbml>
    </script>
</fb:serverFbml>

To invite facebook chat, try:

<fb:serverfbml>
  <script type="text/fbml">
    <fb:chat-invite msg="let play a game!" condensed="false"/>
  </script>
</fb:serverfbml>
0
source

Source: https://habr.com/ru/post/1770356/


All Articles