【发布时间】:2016-10-26 02:09:47
【问题描述】:
我正在尝试将 Facebook 帖子嵌入网站。我拿了 Facebook 最基本的例子,并将其插入到 html 中。在页面上,我看到一个很大的空白区域,但没有嵌入帖子。如果我访问 Chrome 或 Safari,这看起来非常好。我使用的是 Firefox 47。有趣的是,在 Firefox 中,当我访问 iframe 标记时,我会看到以下生成的 html。
为嵌入帖子生成的 html:
<iframe style="border: none; overflow: hidden;" src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2F20531316728%2Fposts%2F10154009990506729%2F&width=500&show_text=true&height=290&appId" width="500" height="290" frameborder="0" scrolling="no">
</iframe>
iframe内的代码:
<html>
<head></head>
<body></body>
</html>
出了什么问题,我该如何解决?
【问题讨论】:
-
确保不是某些插件或隐私模式阻止了请求。
标签: javascript html facebook iframe