2017-02-21 89 views
0

我在我的網站中發現標籤og:image的問題。og:圖片沒有快速抓取

這是在我的PHP應用程序

<meta property="og:title" content="Fondazione dell'ordine degli psicologi dell'abruzzo onlus" /> 
<meta property="og:type" content="article" /> 
<meta property="og:image" content="https://www.ordinepsicologiabruzzo.it/images/img_jolly.jpg" /> 
<meta property="og:image:type" content="image/jpeg" /> 
<meta property="og:image:width" content="243" /> 
<meta property="og:image:height" content="227" /> 
<meta property="og:url" content="https://www.ordinepsicologiabruzzo.it/news/in-primo-piano/fondazione-dell-ordine-degli-psicologi-dell-abruzzo-onlus.html" /> 
<meta property="og:site_name" content="Ordine degli Psicologi della regione Abruzzo" /> 

生成但是代碼facebook的調試工具在圖像不迅速採取和FB建議我使用og:image:widthog:image:height但是......這些標籤在這裏!

我嘗試使用http(而不是https)版本的網站,但是是一樣的。

該網站是:www.ordinepsicologiabruzzo.it和大量的網頁只是正確的刮。

任何想法?

+2

可能重複:http://stackoverflow.com/questions/8855361/fb-opengraph-ogimage-not-pulling-images-possibly-https?rq=1 –

+2

Facebook的緩存它們的數據,所以你必須要麼等待,要麼手動將其重置爲您的網站鏈接。 https://developers.facebook.com/tools/debug/sharing/。我爲你做了這件事,如果你想知道爲什麼它突然發生作用。 – Nytrix

+0

對,我試圖記住我是如何強迫我最後一次這樣做的!但是,存在https圖像錯誤。 –

回答

0

您的網站目前不在head中聲明og-image。您可以通過訪問您的site並查看源代碼來查看此信息。你會注意到你的一些OpenGraph標籤也缺少它們的content值,包括og-image:type,og-image:width,og-image:height

enter image description here

如果選中Facebook's Developer工具,你會被告知同樣的事情,那你缺少og-image

添加og-image標籤,並且只使用//作爲content鏈接的開頭。

<meta property="og:image" content="//ordinepsicologiabruzzo.it/images/img_jolly.jpg" /> 
+0

謝謝。請訪問此頁https://www.ordinepsicologiabruzzo.it/news/in-primo-piano/psicologia-e-nuove-tecnologie-digitali-quali-implicazioni.html 你可以在這裏看到所有的元。這個頁面有什麼問題?我必須分享這樣的網頁。如果OG沒有完全填滿,我不需要分享。 –