【问题标题】:facebook page plugin not displaying on my websitefacebook页面插件未显示在我的网站上
【发布时间】:2015-04-22 12:59:18
【问题描述】:

我遵循了这些说明 (https://developers.facebook.com/docs/plugins/page-plugin),但我得到的只是 Facebook 页面的链接。该页面未嵌入到我的网站中。

我的代码如下:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>facebook</title>
</head>

<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>



<div class="fb-page" data-    href="https://www.facebook.com/christpalaceinternational" data-width="320" data-   height="500" data-hide-cover="false" data-show-facepile="true" data-show-   posts="true"><div class="fb-xfbml-parse-ignore"><blockquote    cite="https://www.facebook.com/christpalaceinternational"><a   href="https://www.facebook.com/christpalaceinternational">CHRIST PALACE   MINISTRIES INTERNATIONAL</a></blockquote></div></div>

</body>
</html>

【问题讨论】:

  • data- href - 你真的有那些空间吗?当然,那必须是data-href。 (对于其他 data- 属性也是如此。)
  • Artem:您能否确认CBroe 的建议是否解决了您的问题?

标签: facebook


【解决方案1】:

我也有同样的问题。我检查了文件,上面说要取消所有年龄、国家等的限制。由于 facebook 限制将嵌入到您的网站中。因此:

  • 对于不受限制的用户,插件将按预期正常呈现。
  • 插件根本不会为受限制的用户呈现。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多