外来属性错误:Fb:page_id

时间:2011-11-05 19:22:26

标签: facebook facebook-graph-api parameters

我想在我的网页上添加一个类似的按钮,但每个页面的喜欢数量保持在'38'。我使用了调试器,结果如下: 无关属性:此类对象不允许使用名为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 个答案:

答案 0 :(得分:1)

  1. 您不能在“歌曲”类型的对象上拥有page_id - “page_id”标记为{edit:是,直到2011年12月}才能声明用于分析目的的网站/域。

  2. 如果用户喜欢或共享该页面,og:url标记必须指向您想要喜欢的URL - 在大多数情况下,这将是Like按钮所在的URL。

  3. 任何其他错误都可以很容易地解释(此时),因为看起来你的og:url标签指向你的域的根,可能没有正确的标签

相关问题