我使用AJAX请求加载以下代码。它可以很好地处理非ajax请求。
<div class='center' id='fb_invite_box'>
<fb:serverfbml width="646" id="serverFbml">
<script type="text/fbml" id="textFbml">
<fb:request-form method='post' action='<%=invites_url%>' type='test' invite='true' content="test text">
<fb:multi-friend-selector actiontext='Invite your friends to my app!' rows='3' cols='4' import_external_friends='false' email_invite='true'/>
</fb:request-form>
</script>
</fb:serverfbml>
</div>我从我所学到的在ajax请求后呈现FBML的知识中运行这段代码。
FB.XFBML.parse(document.getElementById('fb_invite_box'));
我得到了这个错误:
<fb:serverfbml> requires the "fbml" attribute.我是不是遗漏了什么?为什么这个不起作用?
发布于 2012-01-05 00:30:34
由于FBML很快就会被弃用(https://developers.facebook.com/docs/reference/fbml/),我建议使用新的https://developers.facebook.com/docs/reference/dialogs/requests/请求对话框来邀请人们加入你的应用程序。
https://stackoverflow.com/questions/7046892
复制相似问题