Button OpenGraph可以在Facebook和Debuggeer上使用,但不能使用like按钮

Button OpenGraph可以在Facebook和Debuggeer上使用,但不能使用like按钮,button,facebook-opengraph,Button,Facebook Opengraph,我在本页中使用了Open Graph示例: 这是我的页面代码: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp /DTD/xhtml-rdfa-1.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#"> <head> <meta

我在本页中使用了Open Graph示例:

这是我的页面代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp     /DTD/xhtml-rdfa-1.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Addio Celibato Napoli - Idee Addio Celibato E Nubilato -</title>
<meta name="description" content="Addio Celibato Napoli - Per una serata entusiasmante!"  />
<meta name="keywords" content="Addio Celibato Napoli" />
<meta property='og:image' content='http://www.ideeaddiocelibatoenubilato.it/Grafica/FacebookOG/addio-celibato-nubilato.png' />
<meta property="og:title" content=" Test OG Titolo " />
<meta property="og:description" content=" Test OG Description" />
当我发布页面链接并获取正确的图像、标题和描述时,它可以在Facebook墙上工作,可以在调试器上工作:

但当我或其他人单击“Like”按钮时,它对该按钮不起作用。在这种情况下,它会获取在页面上找到的第一张图像以及标记的标题和描述,而不是Open Graph的标题和描述

我想问题出在like按钮上

首先,我导入body标记中的函数:

<div id="fb-root"></div>
<script type="text/javascript">(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/it_IT/all.js#xfbml=1&amp;appId=348639055215607";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
我指定对所有类似按钮使用唯一的应用程序ID

然后我用javascript将like按钮放在某个地方,因为验证:

<div id="likeButtonDiv">
</div>
<script type="text/javascript">
   contenuto="<fb:like href='http://www.ideeaddiocelibatoenubilato.it/addio-celibato-napoli.php' send='true' layout='button_count' width='100' show_faces='false'></fb:like>";
    }
       document.getElementById('likeButtonDiv').innerHTML=contenuto;
  </script>
这与我在另一个网站tendinosirotulea.it/webmaster.php中使用的程序相同,在那里工作得很好