1

我正在尝试为我们的网站设置 opengraph 属性,但 facebook 拒绝查看它们。

我设法将我们的内容减少到 facebook 可以看到 og 元标记的水平。它可以在http://cancellar.hu/test.html下找到(注意:删除了 99% 的内容)

我可以在 linter 中看到所有内容:http: //developers.facebook.com/tools/lint/ ?url=http://cancellar.hu/test.html

但是当我在第二个 p 中添加几个 ascii 字符(注意:“felhasznal”)时:http ://cancellar.hu/test2.html

Facebook 说它没有标签: http: //developers.facebook.com/tools/lint/ ?url=http://cancellar.hu/test2.html

# diff test.html test2.html 
41c41
< </p>
---
> felhasznal</p>
4

1 回答 1

1

经过长时间的测试,我编写了一个过滤器,如果用户代理是 facebook 机器人,它会删除 html 的正文部分。从那时起,我们没有任何错误。

于 2011-01-24T20:34:51.960 回答