从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。有没有办法在FB.ui对话框中使用fbml?如果是这样,那将如何运作。
指针赞赏。答案 0 :(得分:0)
在上面的示例中,它应显示为:
<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>