从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 sdk时,如何获得fb:chat-invite的功能呢?有没有办法在FB.ui对话框中使用fbml?如果是这样的话,这是如何工作的。
感谢您的指点。
发布于 2010-10-20 01:54:06
在上面的示例中,它应该是:
<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>https://stackoverflow.com/questions/3970911
复制相似问题