2011-11-05 77 views
0

我想向我的网页添加一个类似的按钮,但每个页面的喜欢数量保持在'38'。我使用了调试器,结果如下: 无关属性:此类型的对象不允许名为fb:page_id的属性。无关属性错误:Fb:page_id

如果我删除'fb:page_id'这一行,调试器会给我两个'og:url'和'og:title'错误!

这是我的元代码。我不明白什么是错的。

<title><?php echo $song_title;?> | NightTunes</title> 
<meta property="og:title" content="NightTunes"/> 
<meta property="og:type" content="song"/> 
<meta property="og:url" content="http://NightTunes.org/"/> 
<meta property="og:image" content="http://NightTunes.org/images/logo.jpg"/> 
<meta property="og:site_name" content="NightTunes"/> 
<meta property="fb:admins" content="793649824"/> 
<meta property="fb:page_id" content="160941893927000" /> 
<meta property="og:description" content="NightTunes' goals are to support EDM artists from the industry leading names to the up and comers. We endeavor to bring to our readers first-rate news about releases, events, stories and so forth."> 
<meta name="keywords" content="nighttunes,livechat,albin,myers,swedish,chat,house,live-chat,live,music,electro,dubstep,myback,john,dahlback, tristan, garner, avicii, house, music" /> 
<meta name="robots" content="all" /> 
<link rel="shortcut icon" href="http://www.NightTunes.org/images/favicon.png" /> 
<link rel="image_src" href="campus/upload/<?php echo $meta_image;?>"/> 

帮助帮助!!! :'(

在此先感谢

回答

1
  1. 你不能有类型的对象上PAGE_ID!‘歌’ - 在‘PAGE_ID’标签{编辑:是,直到2011年12月对}要求分析目的的网站/域名

  2. 如果用户喜欢或分享网页,og:url标记必须指向您希望被喜欢的网址 - 在大多数情况下,这将与Like按钮打开。

  3. 任何其他错误都可以很容易地解释由于它看起来像你的og:url标签看起来像你的域的根,可能没有正确的标签

+0

谢谢你谢谢你!!!!!! !!!! – Jeremy