2014-09-24 114 views
1

嗨,当我在Facebook上devopers调试用下面的代码为什么Facebook的不喜欢这个

<html xmlns="http://www.w3.org/1999/xhtml" 
xmlns:og="http://ogp.me/ns#" 
xmlns:fb="http://www.facebook.com/2008/fbml"> 
<html> 
<meta property="fb:app_id" content="lotsnumbers" /> 
<meta property="og:title" content="FOR SALE"/> 
<meta property="og:type" content="product"/> 
<meta property="og:url" content="www.website.com.au/php_test.php"/> 
<meta property="og:image" content="image.gif" 
<meta property="og:description" content="Stuff for sale" /> 

我碰到下面的错误在URL类型的“http://www.website.com.au/php_test.php

对象的网站'无效,因为属性'og:url'的给定值'www.website.com.au/php_test.php'无法解析为类型'url'。

有人能告诉我为什么? 在此先感谢。

+1

如果这是你确切的代码,你有一个未关闭标签 – Devin 2014-09-24 04:03:53

+0

什么是真正的网址是什么? – WizKid 2014-09-24 04:05:08

回答

0

您需要在您的og:url上输入schemehttp://https://)。其看来,当它缺少它,不能正确解析:

<meta property="og:url" content="http://www.website.com.au/php_test.php" /> 

而解决这一问题缺少自我封闭:

<meta property="og:image" content="image.gif" /> 
+0

谢谢@Ghost – user2432677 2014-09-24 04:36:49

+1

@ user2432677确定男人很高兴它帮助 – Ghost 2014-09-24 04:38:12

相关问题