2014-11-20 24 views
0

我建立了一個客戶端網站(wordpress)我使用1和1專用的Plesk運行我的服務器。該網站的作品完美,我們可以去個別網頁,按照鏈接,沒有問題。使用Facebook或Google分析時出現問題。當我們嘗試在Facebook上分享鏈接時,它會拉動默認的Parallels頁面和圖像。Facebook將Plesk默認頁面拉到網頁中

我們已經使用了Facebook的開發調試工具,並沒有發生什麼變化,OG的錯誤如下:

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

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

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

Inferred Property The 'og:image' property 
should be explicitly provided, even if a value can be inferred from other tags. og:image could not be downloaded or is too small og:image was not defined, could not be downloaded or was not big enough. Please define a chosen image using the og:image metatag, and use an image 
that's at least 200x200px and is accessible from Facebook. Image 'http://www.4you2take.com/img/apps/pdfwl-box.gif' will be used 
instead. 

從那時起我就刮使用Facebook調試工具駐留在同一我所有的網站服務器,並將其DNS由1and1託管。它們都導致上述相同的缺省頁面和錯誤。

有沒有其他人遇到過這個問題,並找到了解決辦法?

一個有問題的網站是http://www.4you2take.com

回答

0

我做已經具有必要的開放圖屬性的指定元標記。

原來,DNS沒有正確拉入。不知道服務器配置是否正確。我最終做的是將DNS管理從服務器上拿走,然後交給註冊服務商。

這樣做的伎倆,它不再指向幻像Plesk信息登陸頁面。

0

此錯誤消息「屬性應明確規定」是相當清楚的

你應該<head>定義就像在你的網站的代碼,這個屬性:

<meta property="og:url" content="http://www.4you2take.com/" /> 
<meta property="og:title" content="4 you 2 take.com" /> 
<meta property="og:description" content="Your portal for Freecycling listings around the world. List for free and get for free. 4 You 2 Take is where everything is for free!" /> 
<meta property="og:image" content="http://www.4you2take.com/some-your-image.jpg" /> 

本指南描述者此特性https://developers.facebook.com/docs/sharing/best-practices#tags

3

經過幾個小時的試圖調試這個問題和玩DNS設置/服務器,我有一個解決方案,適合我。

我注意到來自Facebook的請求來自IPv6服務器,但由Plesk生成的Apache配置文件不包含VirualHost聲明中的IPv6地址。

要調試,我改變了以下線在我的Apache .conf文件:

<VirtualHost IPv4:80>

到:

<VirtualHost IPv4:80 [IPv6]:80>

...並立刻在重啓動Apache,Facebook的是能夠成功刮我的網站。

這不是一個永久的解決方案,因爲Plesk會重寫配置文件,因此您必須進入Plesk面板並確保您的服務器的IPv6地址已分配給擁有相關域的Subscription。就我而言,只有IPv4被分配給訂閱。

可以在每個特定訂閱的「更改託管設置」下找到該設置。

Andrew--我是這個網站的新手,無法直接回復您,但我想指出您提出的DNS解決方案無效。事實上,刮你與Facebook所提到的網站仍從默認的Plesk頁面產生內容:

https://developers.facebook.com/tools/debug/og/echo?q=http://www.4you2take.com

希望我在這裏提出的解決方案將是對您有所幫助。