Facebook Like Box无法正常工作

时间:2010-04-28 19:14:23

标签: facebook

我正在尝试在我的网站中集成一个Like框。它没有用,所以我创建了一个示例页面(也不起作用)。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <title>FB TEST</title>
</head>

<body>
    <iframe src="http://www.facebook.com/plugins/likebox.php?profile_id=185550966885&amp;width=292&amp;connections=5&amp;stream=false&amp;header=true" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:292px; height:px"></iframe>
</body>
</html>

我也在使用示例iframe代码(我的代码不起作用,所以我试过了),取自: http://developers.facebook.com/docs/reference/plugins/like-box

示例页面在这里:

http://www.plugb.com/fb-test.php

我该如何解决这个问题?

提前致谢。

1 个答案:

答案 0 :(得分:3)

他们生成的代码中似乎存在错误。如果在他们生成的URL中将“profile_id”替换为“id”,它应该可以正常工作。

相关问题