2014-11-20 22 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

希望我在这里提出的解决方案将是对您有所帮助。