运行调试时缺少og meta标记 [英] Missing og meta tags when running debug

查看:80
本文介绍了运行调试时缺少og meta标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将适当的元标记添加到我的视频共享网站,但Facebook继续说找不到它们.但是,当我查看源代码时,我看到了它们.你能看看我的消息来源,并告诉我我做错了什么吗?

I am adding the proper meta tages to my video sharing website but Facebook continues to say they are not found. However, when I view source I see them. Can you please look at my source and tell me what I am doing wrong?

http://www.christianclips.com/video/151/Cannon-洗礼

推荐答案

前一段时间,我在运行旧版本php(5.2.x)的服务器上遇到了相同的问题

I had the same problem a while ago on a server running an old version of php (5.2.x)

可以在其他服务器上完美地解析相同的页面,但在此服务器上它们将失败.

The same pages would be parsed flawlessly on other servers yet they failed on this one.

我比较了标头和标题,"Content-length"不存在.添加后,一切开始起作用.

I compared the headers and voilá, "Content-length" wasn't there. After adding it, everything started to work.

这些是您页面的标题:

Date Wed,2011年8月31日格林尼治标准时间

Date Wed, 31 Aug 2011 17:08:45 GMT

服务器Apache

X-Powered-by PHP/5.2.17

X-Powered-By PHP/5.2.17

格林尼治标准时间1981年11月19日星期四过期

Expires Thu, 19 Nov 1981 08:52:00 GMT

缓存控制不存储,不缓存,必须重新验证,后检查= 0,预检查= 0

Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0

Pragma No-cache

Pragma no-cache

内容编码gzip

保持活动超时= 5,最大= 100

Keep-Alive timeout=5, max=100

连接保持活动

分块传输编码

Content-Type text/html

Content-Type text/html

缺少内容长度.

Facebook在找到具有适当值的Content-Length标头之前不会解析它.

Facebook will not parse it until it finds the Content-Length header with a proper value.

我希望这对您有帮助

欢呼

kal

这篇关于运行调试时缺少og meta标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆