来自 this forum entry fb:chat-invite 似乎不是有效的 xfbml 标签,所以要使用它需要使用 serverfbml。然而测试
<fb:serverfbml>
<script type="text/fbml">
<fb:date t="1216170865" format="long_numeric" /> hello again
</script>
</fb:serverfbml>
结果
<fb:serverfbml> requires the "fbml" attribute.
那么如何在使用 xfbml 和 javascript 时获得 fb:chat-invite 的功能 SDK。有没有办法将 fbml 与 FB.ui 对话框一起使用?如果是这样,那将如何工作。
感谢指点。
最佳答案
在上面的例子中它应该是:
<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>
对于 facebook 聊天邀请尝试:
<fb:serverfbml>
<script type="text/fbml">
<fb:chat-invite msg="let's play a game!" condensed="false"/>
</script>
</fb:serverfbml>
关于javascript - 我怎样才能获得 fb :chat-invite using facebooks javascript sdk or xfbml 的功能,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3970911/