gpt4 book ai didi

html - 我设置 og :type with 'article' but why og type always show on default 'website'

转载 作者:行者123 更新时间:2023-11-28 02:35:15 25 4
gpt4 key购买 nike

我对 og 有疑问:键入 facebook。我已经将 meta og: type 设置为“article”,但仍然检测到 og: type 是“website”。但是,每次我尝试再次抓取时,og: type changes to 'article'。所以,我不可能在每次发帖时都进行手动抓取。

这是我的代码:

<meta property="og:url" content="https://jpnn.dev/news/pdip-usung-jenderal-berbadan-besar-jadi-cagub-maluku"/>
<meta property="og:title" content="PDIP Usung Jenderal Berbadan Besar jadi Cagub Maluku"/>
<meta property="og:description" content="Bu Megawati bercanda, menyebut sang jenderal sedang cari kerjaan karena sudah mau pensiun."/>
<meta property="og:image" content="https://photo.jpnn.com/arsip/normal/2017/05/21/25841e2eda0d3bbe198b1f9e6662a8c0.jpg">
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="400" />
<meta property="og:image:height" content="250" />
<meta property="og:locale" content="id_ID"/>
<meta property="og:type" content="article"/>
<meta property="og:site_name" content="www.jpnn.com"/>
<meta property="og:ttl" content="345600"/>
<meta name="Facebot" content="index,follow" />
<meta name="pubdate" content="2017-12-17T14-22-00Z" itemprop="datePublished" />
<meta content="2017-12-17T14-22-00Z" itemprop="dateCreated" />
<meta property="article:author" content="53788620694"/>
<meta property="article:publisher" content="53788620694"/>
<meta property="article:section" content="politik"/>
<meta property="article:published_time" content="2017-12-17T14-22-00Z"/>
<meta property="article:tag" content="Murad Ismail"/>
<meta property="article:tag" content="Pilgub Maluku 2018"/>
<meta property="article:tag" content="PDIP"/>

这是结果:

Result

Error

我的代码有什么问题?请帮助我:(

谢谢

最佳答案

article:author的类型是profile,不是string

这意味着该值必须是带有 Open Graph profile 标记的网页的 URL(例如 Facebook 个人资料页面,但不一定是 Facebook。)。

关于html - 我设置 og :type with 'article' but why og type always show on default 'website' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47853505/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com