this.data为空 - Facebook评论

时间:2011-08-31 11:59:28

标签: facebook comments firebug

我有这段代码:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
<head>
<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
</head>
<body>

<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
  FB.init({
     appId  : '167549853323291',
     status : true, // check login status
     cookie : true, // enable cookies to allow the server to access the session
     xfbml  : true  // parse XFBML
  });
};
</script>
<fb:comments href="http://auto.receptie.ro/test.html"></fb:comments>
</body>
</html>

这是链接:http://auto.receptie.ro/test.html

当我在输入框中单击时,firebug返回错误:

this.data is null
http://static.ak.fbcdn.net/rsrc.php/v1/yA/r/HG9KOfvPTU4.js
Line 59

然后我点击并再次点击输入框,firebug返回错误:

this._input is undefined
http://static.ak.fbcdn.net/rsrc.php/v1/yA/r/HG9KOfvPTU4.js
Line 56

1 个答案:

答案 0 :(得分:0)

您不需要两次请求XFBML解析;这可能会导致错误。

尝试从Facebook JavaScript SDK源网址中删除#xfbml=1。它与xfbml: true中的FB.init()冲突。