我有一个网站,当点击 Facebook 上共享的链接时会触发警告。警告说:
此链接可能存在问题
我们检测到这个链接:
http://www.example.online/
可能是恶意的。为确保您的帐户和设备安全,请仅关注您信任的链接。”
我运行 Facebook 调试工具并收到以下错误消息:
推断属性
应该明确提供
og:image
属性,即使可以从其他标签推断出值。
我用谷歌搜索了这个问题,我知道这是由于网站标题中缺少元信息造成的,但我网站的代码在标题中有以下内容:
<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"/>
我不知道如何修复此错误消息。属性元标记显然在那里。
原文由 Kevin Bright 发布,翻译遵循 CC BY-SA 4.0 许可协议
简而言之,您应该使用此工具重新获取您的网站信息: https ://developers.facebook.com/tools/debug/
粘贴您的 URL 并按 Debug 。然后要么执行 Fetch ,要么按 Scrape Again 。这将刷新 Facebook 缓存,您的 html 页面将被重新加载。
一些附加信息: https ://stackoverflow.com/a/44453472/4899346