当我分享我的网站链接时,标题不显示

问题描述 投票:0回答:1

我已经使用了元标题、图像以及此 sql 错误语句在标题中显示的所有内容。 当我第一次开发我的网站并遇到一些错误时,出现了这个 sql 错误。现在我的网站没有问题,运行顺利,但是当我与某人分享链接时总是显示此sql语句。

    <meta property="og:url"                content="http://www.example.com" />
    <meta property="og:type"               content="article" />
    <meta property="og:title"              content="My Title" />
    <meta property="og:description"        content="" />
    <meta property="og:image"              content="images/teer-result.jpg" />

html facebook-opengraph meta-tags
1个回答
0
投票

您应该访问您的链接。然后查看源代码并检查 property="og:title" 中实际设置的值。它可能会阐明错误。

如果看起来不错,那么 Facebook 可能缓存了之前的错误值。在这种情况下,请尝试使用 https://developers.facebook.com/tools/debug/ 获取新副本并确认。

© www.soinside.com 2019 - 2024. All rights reserved.