2017-05-25 65 views
0

我用我的頁面(wordpress)基於All In One SEO插件實施Facebook的OpenGRaph協議。WordPress的所有在一個SEO插件不分享到Facebook牆

每頁:

URL returned a bad HTTP response code. 
Inferred Property 
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags. 

我從裁判:

<meta property="og:type" content="article"> 
<meta property="og:title" content="my_title"> 
<meta property="og:url" content="http://my_site.jp"> 
<meta property="og:description" content="my_content"> 
<meta property="article:published_time" content="my_published_time"> 
<meta property="article:modified_time" content="my_modified_time"> 
<meta property="og:site_name" content="my_site_name"> 
<meta property="og:image" content="http://my_site.jp/wp-content/uploads/2017/05/my_image.png"> 
<meta property="og:image:width" content="600"> 
<meta property="og:image:height" content="315"> 
<meta property="og:locale" content="my_cocale"> 

但我Facebook developer debug檢查時收到這些錯誤Facebook Open Graph Error - Inferred Property

但我沒有任何解決方案。有這個問題的解決方案嗎?

enter image description here

+0

你調試什麼網址? – WizKid

+0

用於調試的URL:https://developers.facebook.com/tools/debug/sharing/?q=http%3A%2F%2Fcomona.jp%2F47456 – DinhNC

+0

什麼是您的URL! – WizKid

回答

0

由於您最初鏈接的形象問題已經得到解決,很難說什麼是錯的,特別是因爲你所提供的代碼片段似乎罰款。根據您所提供,不過,我得到這個錯誤後鏈接:

The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.

這是因爲沒有一個明確的og:description標籤頁面上可用。

有人無關:我注意到重複twitter:card和相關標籤。這不應該導致Open Graph無效,但應該解決。

我的預感是,您使用的多個插件可能會提供相同的事情,導致衝突和意外行爲。這就是爲什麼我傾向於遠離「提供所有」插件,而是使用可以完成一件事和一件事的插件。在你的情況,這可能意味着使用更簡單,更可預見的插件完全一樣的Open Graph:

https://wordpress.org/plugins/complete-open-graph/

+0

謝謝你的解決方案。但我的客戶請求使用All In One SEO。所以我需要修復這個錯誤,而不是修改其他插件。 – DinhNC

相關問題