this.data 为 null - Facebook 评论
我有这个代码:
<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< /a>
当我点击输入框时,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
I have this code:
<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>
and this is the link: http://auto.receptie.ro/test.html
When I click in the input box, firebug return error:
this.data is null
http://static.ak.fbcdn.net/rsrc.php/v1/yA/r/HG9KOfvPTU4.js
Line 59
Then I click out and click again in the input box, firebug return error:
this._input is undefined
http://static.ak.fbcdn.net/rsrc.php/v1/yA/r/HG9KOfvPTU4.js
Line 56
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不需要请求 XFBML 解析两次;这可能会导致错误。
尝试从 Facebook JavaScript SDK 源 URL 中删除
#xfbml=1
。它与FB.init()
中的xfbml: true
冲突。You don't need to request XFBML parsing twice; this can cause errors.
Try removing
#xfbml=1
from the Facebook JavaScript SDK source URL. It conflicts with thexfbml: true
inFB.init()
.