如何将Facebook页面的最新帖子添加到我的WordPress站点

时间:2013-12-18 作者:Zammuuz

嗨,我想在我的word press网站上显示一个封面书页面的所有帖子。我试过“嵌入帖子”。。但当我给出帖子的URL时,预览显示为

"This Facebook post is no longer available. 
 It may have been removed or the privacy settings of the post may have changed."
我该怎么办?有其他想法吗?我从embedded post获得的代码是:

<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/all.js#xfbml=1& appId=231268450376260";
  fjs.parentNode.insertBefore(js, fjs);
}(document, \'script\', \'facebook-jssdk\'));</script>
 <div class="fb-post" data-href="https://www.facebook.com/Dr.Seenaj" data-width="500"></div>

1 个回复
最合适的回答,由SO网友:Przemysław Suszek 整理而成

请在此处粘贴有关此函数的所有代码。接下来看一下本教程:http://smallbusiness.chron.com/display-facebook-feed-wordpress-31436.html

顺致敬意,

结束