Facebook 所需属性';og:标题';类型为';字符串';没有提供
当我在facebook linter中调试我的网页时,它会不断显示警告: “未提供'string'类型的必需属性'og:title'” 我已阅读了关于SO的建议,并尝试:Facebook 所需属性';og:标题';类型为';字符串';没有提供,facebook,facebook-opengraph,Facebook,Facebook Opengraph,当我在facebook linter中调试我的网页时,它会不断显示警告: “未提供'string'类型的必需属性'og:title'” 我已阅读了关于SO的建议,并尝试: 无gzip压缩 在fb调试器上重新刮取 仅使用Facebook og元标记构建新的测试页面 但警告是一样的 测试页面代码为: <!DOCTYPE html> <html prefix="og: http://ogp.me/ns#" > <head> <title>te
- 无gzip压缩
- 在fb调试器上重新刮取
- 仅使用Facebook og元标记构建新的测试页面
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#" >
<head>
<title>testing page</title>
<meta property="og:title" content="testing page og title" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://www.skinvac.com/test.html" />
<meta property="og:image" content="https://www.skinvac.com/test-image.png" />
<meta property="og:description" content="testing page og description " />
<meta name= "keywords" content="test " />
<meta name= "description" content="test" />
</head>
<body>
<h1>test</h1>
<img src="test-image.png">
</body>
</html>
测试页
试验
调试结果可以在这里看到
警告:“需要'og:type'属性,但不存在。”
但是“og:title”属性在标题标记中
请问我该怎么修
谢谢您正在使用https,但您没有有效的SSL证书。将代码中的https替换为http,并改为使用http链接进行测试。谢谢!!我猜你可以忽略它,如果它出现,但你应该考虑使用正确的图像大小/比率: