Facebook 无法识别开放图标签 og:title
Facebook not recognizing open graph tag og:title
我不断从 Facebook 收到以下错误 -
Object at URL 'https://qa.recrouter.com/displayJob/Y6LtGNI0WH1rVndaKCwv4PUZkM925mcq' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.
然而,当我转到调试器并查看爬虫看到的内容时,我发现页面中确实包含以下信息 -
<meta property="og:type" content="website">
<meta property="og:title" content="Pega Developer for Insurance Claims">
<meta property="og:description" content="
We are a leading provider of insurance products for commercial and institutional customers through one of the world’s most far-reaching property casualty networks. We offer some of the industry’s most extensive ranges of products and services, ...">
<meta property="og:site_name" content="Recrouter">
<meta property="og:url" content="https://qa.recrouter.com/displayJob/Y6LtGNI0WH1rVndaKCwv4PUZkM925mcq">
<meta property="og:image" content="https://qa.recrouter.com/img/logo512h.png">
<meta property="og:image:type" content="image/png">
我错过了什么?
当我在调试器上检查你的 URL 时,我没有收到这个错误,og:title 标签似乎工作得很好。试着再看看 ;)
我修复了它 - 本质上,错误是由于我对标签进行了修改。为了容纳 google 分享,我将 HTML 标签修改为如下 -
<!DOCTYPE html itemscope itemtype="schema.org/website">
我将其改回 <!DOCTYPE html>
一切正常
我不断从 Facebook 收到以下错误 -
Object at URL 'https://qa.recrouter.com/displayJob/Y6LtGNI0WH1rVndaKCwv4PUZkM925mcq' of type 'website' is invalid because a required property 'og:title' of type 'string' was not provided.
然而,当我转到调试器并查看爬虫看到的内容时,我发现页面中确实包含以下信息 -
<meta property="og:type" content="website">
<meta property="og:title" content="Pega Developer for Insurance Claims">
<meta property="og:description" content="
We are a leading provider of insurance products for commercial and institutional customers through one of the world’s most far-reaching property casualty networks. We offer some of the industry’s most extensive ranges of products and services, ...">
<meta property="og:site_name" content="Recrouter">
<meta property="og:url" content="https://qa.recrouter.com/displayJob/Y6LtGNI0WH1rVndaKCwv4PUZkM925mcq">
<meta property="og:image" content="https://qa.recrouter.com/img/logo512h.png">
<meta property="og:image:type" content="image/png">
我错过了什么?
当我在调试器上检查你的 URL 时,我没有收到这个错误,og:title 标签似乎工作得很好。试着再看看 ;)
我修复了它 - 本质上,错误是由于我对标签进行了修改。为了容纳 google 分享,我将 HTML 标签修改为如下 -
<!DOCTYPE html itemscope itemtype="schema.org/website">
我将其改回 <!DOCTYPE html>
一切正常