我有一个网站,当点击 Facebook 上共享的链接时会触发警告。警告说:
Possible problem with this link
We have detected that this link:
http://www.example.online/
may be malicious. To keep your account and device secure, only follow links you trust."
我运行了 Facebook 调试工具,但收到以下错误消息:
Inferred Property
The
og:image
property should be explicitly provided, even if a value can be inferred from other tags.
我用 Google 搜索了这个问题,我知道这是由于网站标题中缺少一些元信息造成的,但我网站的代码在标题中有以下内容:
<meta http-equiv="etag" content="2efdc27c8967f14e2c829e601f7a1228"/>
<meta property="og:title" content="South Jersey Aerial Photograpahy"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="http://www.example.online/"/>
<meta property="og:image" content="https://static.example.com/media/56a444_9273e80a60684dc8b38e56025059f356%7Emv2_d_3200_1800_s_2.png"/>
<meta property="og:site_name" content="South Jersey Aerial Photograpahy"/>
<meta property="og:description" content="South Jersey Aerial Photography is South Jersey's premier aerial photography and aerial videography company. Fully licensed and insured. Contact us today!"/>
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE"/>
我不知道如何修复此错误消息。属性元标记显然在那里。
最佳答案
简而言之,您应该使用此工具重新获取您的网站信息: https://developers.facebook.com/tools/debug/
粘贴您的网址并按调试。然后执行 Fetch,或按 Scrape Again。 这将刷新 Facebook 缓存,您的 html 页面将被重新加载。
关于html - 无法修复 : 'og:image' property should be explicitly provided,,即使可以从其他标签推断出一个值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41553304/