嘿,伙计们,为什么这个代码不能工作?Facebook的API是如此糟糕,以至于令人讨厌...
编辑我觉得这还不够重,这不仅很烦人,而且是彻底的倒退,文档充其量也是可怕的..../rant
<a href="#" id="click" onclick="outside_location.setInnerFBML(link_1);">Go go go</a><br />
<div id="outside_location"></div>
<fb:js-string var="link_1">
<fb:iframe height="500" allowTransparency="true" frameborder="0" scrolling="no" style="width:100%; border:none" src="http://www.project-vanquish.co.cc/fb/index.php"></fb:iframe>
</fb:js-string>
<script type="text/javascript" charset="utf-8">
var outside_location = document.getElementById('outside_location');
</script>为了详细说明,让我们回溯一下...Facebook API声明我可以在静态的FBML页面上拥有一个fb:iframe,所以...如果我只有以下条件,它应该可以工作:
<fb:iframe height="500" allowTransparency="true" frameborder="0" scrolling="no" style="width:100%; border:none" src="http://www.project-vanquish.co.cc/fb/index.php"></fb:iframe>可惜什么都没发生,你知道为什么吗?
发布于 2010-12-07 01:37:33
你能链接到它吗?
它是一个可以在页面中安装的应用程序吗?如果是这样的话,如果用户没有先与你的应用程序交互,你就不能嵌入一个iframe。
我认为情况就是这样,是的,Facebook的文档很烂,这是一种赞美。
https://stackoverflow.com/questions/4367662
复制相似问题