注释框的审核工具问题

时间:2012-06-10 20:23:01

标签: comments facebook-apps

我已经有一些晚上正在努力让审核工具在不同页面上的评论框中工作。在这个网站和网上我找不到解决我问题的答案。

如果我将我网站的链接放在调试工具中,我会得到以下内容:

  

必须修复的错误   对象无效值:   “网站”类型的网址“http://www.mysite.be/Page.php”上的对象>无效,因为属性“fb:admins”的给定值“{e-mail@msn.com}”可能不被解析>作为'fbid'类型。

所以我检查了我的用户ID是否正确。它是,但在我的代码中,在头部,它是一个数字:

<meta property="fb:admins" content="5897144XX"/>
<meta property="fb:app_id" content="3226088511525XX"/>
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.mysite.be/page.php" />
<meta property="og:title" content="Title" />
<meta property="og:description" content="Discription" />
<meta property="og:image" content="http://www.mysite.be/page.png"/>
<meta property="og:image:width" content="150" />
<meta property="og:image:height" content="150" />

我把头放在头上:

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/" xml:lang="en" lang="en" dir="ltr">

身体:

<div class="fb-comments" data-href="http://www.mysite.be/page.php" data-num-posts="5" data-width="470"></div>
<div id="fb-root"></div>
<script>(function(d, s, id) {var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src= "//connect.facebook.net/nl_NL/all.js#xfbml=1&appId=3226088511525xx"; fjs.parentNode.insertBefore(js, fjs);}(document, 'script', 'facebook-jssdk'));

</script>
<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId      : '3226088511525xx', // App ID
      channelUrl : '//www.mysite.be/channel.php', // Channel File
      status     : true, // check login status
      cookie     : true, // enable cookies to allow the server to access the session
      xfbml      : true  // parse XFBML
    });

    // Additional initialization code here
  };

  // Load the SDK Asynchronously
  (function(d){
     var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
     if (d.getElementById(id)) {return;}
     js = d.createElement('script'); js.id = id; js.async = true;
     js.src = "//connect.facebook.net/en_US/all.js";
     ref.parentNode.insertBefore(js, ref);
   }(document));
</script>

评论框工作正常,人们可以对文章做出反应,并在Facebook上显示。但是我没有在审核工具中看到这些反应。

有人能告诉我我做错了吗?

2 个答案:

答案 0 :(得分:0)

BTW,Facebook有调试工具:

https://developers.facebook.com/tools/debug

虽然它不是100%防弹(例如,一旦我遇到图像问题,在调试工具中工作正常,但在网址提交时不可见),但可能会在元数据中发现细微的错误。

答案 1 :(得分:0)

无法同时将管理员和应用ID作为元标记。你必须删除一个,如果我是你,我应该选择你自己的用户档案来删除