无法修复:应该明确提供“og:image"属性,即使可以从其他标签推断出一个值 [英] Can't fix: 'og:image' property should be explicitly provided, even if a value can be inferred from other tags

查看:137
本文介绍了无法修复:应该明确提供“og:image"属性,即使可以从其他标签推断出一个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,当点击 Facebook 上共享的链接时会触发警告.警告说:此链接可能存在问题我们检测到此链接:http://www.sjap.online/ 可能是恶意的.为了确保您的帐户和设备安全,请仅访问您信任的链接."

I have a website that triggers a warning when clicked through a link shared on facebook. The warning says: "Possible problem with this link We have detected that this link: http://www.sjap.online/ may be malicious. To keep your account and device secure, only follow links you trust."

我运行了 facebook 调试工具,但收到以下错误消息:

I ran the facebook debug tool and I get the following error message:

Inferred Property
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

Inferred Property
The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.

我在谷歌上搜索了这个问题,我知道这是由于站点标题中缺少元信息引起的,但是我的站点代码在标题中包含以下内容:

I googled this issue and I understand it is caused by some lack of meta information in the site header, but my site's code has the following in the header:

<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.sjap.online/"/>
<meta property="og:image" content="https://static.wixstatic.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"/>

我不知道如何修复此错误消息.属性元标记显然在那里.

I have no idea how to fix this error message. The property metatag is clearly there.

推荐答案

简而言之,您应该使用此工具重新获取您的网站信息:https://developers.facebook.com/tools/debug/

In short, you should re-fetch your website information using this tool: https://developers.facebook.com/tools/debug/

粘贴您的网址,然后按调试.然后执行获取,或按再次抓取.这将刷新 Facebook 缓存,并且您的 html 页面将被重新加载.

Paste your URL and press Debug. Then either do Fetch, or press Scrape Again. This will refresh Facebook cache, and your html-page will be reloaded.

一些附加信息:https://stackoverflow.com/a/44453472/4899346

这篇关于无法修复:应该明确提供“og:image"属性,即使可以从其他标签推断出一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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