脸书 iframe
如何在 facebook 中添加 iframe,
我尝试了此代码片段但不起作用...
<a onClick="outside_location.setInnerFBML(link_1);" style="cursor: pointer;">My Form</a>
<div id="outside_location"></div>
<fb:js-string var="link_1">
<fb:iframe height="514" allowTransparency="true" frameborder="0" scrolling="no" style="width:100%;border:none" src="http://MYNAME.wufoo.com/embed/MYFORM/"><a href="http://happylife.in" title="Contact Request Form" rel="nofollow">Fill out my Wufoo form!</a></fb:iframe>
</fb:js-string>
<script type="text/javascript" charset="utf-8">
var outside_location = document.getElementById('outside_location');
</script>
这是 iframe 不起作用...
How to add iframe in facebook ,
I tried this snippet but not working...
<a onClick="outside_location.setInnerFBML(link_1);" style="cursor: pointer;">My Form</a>
<div id="outside_location"></div>
<fb:js-string var="link_1">
<fb:iframe height="514" allowTransparency="true" frameborder="0" scrolling="no" style="width:100%;border:none" src="http://MYNAME.wufoo.com/embed/MYFORM/"><a href="http://happylife.in" title="Contact Request Form" rel="nofollow">Fill out my Wufoo form!</a></fb:iframe>
</fb:js-string>
<script type="text/javascript" charset="utf-8">
var outside_location = document.getElementById('outside_location');
</script>
This is iframe not working....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除非使用 facebook 命名空间,否则它将无法工作。请参阅本教程,了解如何创建 iframe 应用程序:
Facebook – IFrame 应用程序中的 FBML 渲染
It won't work unless facebook namespaces are used. See this tutorial on how to create the iframe app:
Facebook – FBML rendering in IFrame application