这是嵌入在其页面中的代码facebook。如果
if (top != self) { try { if (parent != top) { throw 1; }
此代码检查其嵌入在iframe中的块加载其他数据,而加载的链接,你可以用图片的点击。
<script type="text/javascript">
/* <![CDATA[ */if (top != self) {
try { if (parent != top) { throw 1; }
var disallowed = ["apps.facebook.com","\/pages\/","apps.beta.facebook.com"];
href = top.location.href.toLowerCase();
for (var i = 0; i < disallowed.length; i++) {
if (href.indexOf(disallowed[i]) >= 0) { throw 1; }
}
} catch (e) {
setTimeout(
function() {var fb_cj_img = new Image();
fb_cj_img.src = "http:\/\/error.facebook.com\/common\/scribe_endpoint.php?c=si_clickjacking&m=on\u002509&t=8183";}, 5000);
window.document.write("\u003cstyle>body * { display:none !important; }\u003c\/style>\u003ca href=\"#\" onclick=\"top.location.href=window.location.href\" style=\"display: block !important; padding: 10px\">\u003ci class=\"img sp_8dfqpl sx_d67a9a\" style=\"display:block !important\">\u003c\/i>Go to Facebook.com\u003c\/a>");
/* XRCm4Hhw */ }}/* ]]> *
</script>
我想表明我长城上onther网站。这个徽章的事情只是Showz的小配置文件图标 – Yahoo 2011-02-23 13:38:37
这将无法正常工作。 Facebook不允许在另一个网站上展示你的墙 - 这是很好的理由。 – felixsigl 2011-02-23 13:41:05