[英]How can I make this code work for custom 'Facebook Like Box'
I found a tutorial with a demo on customizing the 'Facebook Like Box'; 我找到了一个带有自定义'Facebook Like Box'演示的教程。 it works great on that demo.
在该演示中效果很好。 I grabbed the code, and inserted my page's ID via https://graph.facebook.com/ and inserted it in the sidebar code widget of my Wordpress site.
我抓取了代码,并通过https://graph.facebook.com/插入了页面的ID,并将其插入到我的Wordpress网站的侧边栏代码小部件中。 It begans to load, then outputs this error;
它开始加载,然后输出此错误;
' Could not retrieve id for the specified page. ' 无法检索指定页面的ID。 Please verify correct href was passed in. '
请验证是否传入了正确的href。
Where/how can I fix that in the code? 我在哪里/如何在代码中解决该问题? Do I have to update the ID in another place as well?
我是否也必须在另一个地方更新ID?
Code: 码:
<div id="facebook">
<div id="fb-root"></div>
<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script type="text/javascript">FB.init("fd161b28d6338cb852d8ed87878f67c3");</script>
<!-- FBML <fb:fan profile_id="284177564941187" connections="18" width="403" height="360" css="http://line25.com/wp-content/uploads/2010/facebook/demo/style.css?5"></fb:fan> FBML -->
<script src="http://line25.com/wp-content/uploads/2010/facebook/demo/js/fbvalidate.js" type="text/javascript"></script>
</div>
Edit: I'm resorting to this code in attempt to solve my general question with 'Facebook Like Box' - https://stackoverflow.com/questions/7995678/facebook-like-box-close-thumbnail-padding-html5-iframe-v 编辑:我正在尝试使用此代码来尝试使用``Facebook Like Box''解决我的一般问题-https: //stackoverflow.com/questions/7995678/facebook-like-box-close-thumbnail-padding-html5-iframe -v
Why are you using FeatureLoader? 为什么要使用FeatureLoader? That's deprecated and marked for removal shortly.
已弃用并标记为不久将其删除。
The Like Box code can be obtained from https://developers.facebook.com/docs/reference/plugins/like-box/ 可以从https://developers.facebook.com/docs/reference/plugins/like-box/获取“喜欢框”代码
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.