2014-09-24 129 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