Facebook像“对象无效值”和URL无法解析

时间:2013-01-23 00:15:47

标签: facebook-like url-parsing

当我在facebook上进行OG检查时,我收到此错误 https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.dreampiece.com.au%2Findex.php%3Fmain_page%3Dproduct_info%26cPath%3D2_7%26products_id%3D459

  

“产品”类型的网址“http://www.dreampiece.com.au/index.php?main_page=product_info&cPath=2_7&products_id=459”中的对象无效,因为属性的给定值'' “og:url”无法解析为“url”类型。

这是我的页面来源,

<meta property="og:type" content="product" />
<meta property="og:url" content="" />
<meta property="og:description" content="&nbsp; &nbsp; &nbsp; &nbsp; Product Details:    Total Qty: One Pc Materials: Alloy Electroplate &amp; Rhinestones Size: Pendant - 2.5 cm x 1.6 cm; Length&nbsp;-&nbsp;40.6 cm (Ext 7.2 cm) Country of Origin: Japan Colour:&nbsp;Golden&nbsp;" />
<meta property="og:site_name" content="DreamPiece Accessories" />
<meta property="fb:admins" content="120867161308451" />
<meta property="og:image" content="http://www.dreampiece.com.au/images/Products/m02040.jpg" />

它是否由空白og:url引起?我使用的代码如下,

<meta property="og:url" content="<?php echo $canonicalLink; ?>" />

1 个答案:

答案 0 :(得分:0)

是的,这就是造成它的原因 - 你确定你的代码实际上是在那里输出一个值吗?几乎可以肯定的是,如果Facebook的抓取工具在og:url元标记中没有显示任何内容