gpt4 book ai didi

jquery - Facebook 页面插件仅显示带有页面名称的文本

转载 作者:行者123 更新时间:2023-11-28 03:06:50 24 4
gpt4 key购买 nike

我正在尝试在我的网页上添加 Facebook 页面插件。不幸的是,除了文本:“facebook”之外,什么也没有显示。我在 https://developers.facebook.com/docs/plugins/page-plugin/ 添加了他们给我的代码完全正确。这是我添加到空白 .HTML 页面的代码示例:

<!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>Untitled Document</title>
</head>

<body>

<!-----------THIS IS THE FIRST STEP(just pasted the code FB gave me)------------>
<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.4";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>


<!-----------THIS IS THE SECOND STEP(just pasted the code FB gave me)------------>
<div class="fb-page" data-href="https://www.facebook.com/facebook" data-tabs="timeline" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><div class="fb-xfbml-parse-ignore"><blockquote cite="https://www.facebook.com/facebook"><a href="https://www.facebook.com/facebook">Facebook</a></blockquote></div></div>


</body>
</html>

添加的代码没有任何问题。我应该添加或做一些额外的事情吗?此小部件链接到 facebook 的 facebook 页面。当我将它链接到我的页面时,它会做同样的事情(只显示文本“corecoders”)。所有页面插件仅显示文本。

最佳答案

为本地网站使用 Xampp 或 Mamp 解决了这个问题。不过,托管时它可以完美运行。

关于jquery - Facebook 页面插件仅显示带有页面名称的文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32311026/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com