加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

php – Linkedin共享网址/不解析开放图

发布时间:2020-12-13 13:35:53 所属栏目:PHP教程 来源:网络整理
导读:Linkedin文档可以在 here找到 正如它所说,它需要: og:titleog:descriptionog:imageog:url 这是我的wordpress博客源代码的一个例子,为简单起见,我使用Jetpack插件: !-- Jetpack Open Graph Tags --meta property="og:type" content="article" /meta propert
Linkedin文档可以在 here找到

正如它所说,它需要:

og:title
og:description
og:image
og:url

这是我的wordpress博客源代码的一个例子,为简单起见,我使用Jetpack插件:

<!-- Jetpack Open Graph Tags -->
<meta property="og:type" content="article" />
<meta property="og:title" content="Starbucks Netherlands Intel" />
<meta property="og:url" content="http://lorentzos.com/starbucks-netherlands-intel/" />
<meta property="og:description" content="Today I had some free time at work. I wanted to play more with Foursquare APIs. So the question: &quot;What is the correlation of the Starbucks Chain in the Netherlands?&quot;. Methodology: I found all the p..." />
<meta property="og:site_name" content="Dionysis Lorentzos" />
<meta property="og:image" content="http://lorentzos.com/wp-content/uploads/2013/08/starbucks-intel-nl-238x300.png" />

在Facebook它很棒,或者你可以看到元数据here.然而LinkedIn更顽固,并没有真正解析数据,即使如果你无法在共享的页面中设置Open Graph标签,LinkedIn将尝试通过确定标题,描述,缩略图等自动获取内容.

我知道我没有og:image:width标签,但Linkedin甚至不解析标题,描述或网址.任何调试它的想法?

我再次检查了我的HTML并在元数据中发现了一些警告/错误.我修好了,一切都很好.所以解决方案是遇到同样的问题:

再次检查你的HTML并调试它.即使页面在浏览器中很好地加载,LinkedIn解析器在小错误方面也不那么强大.这tool可能有所帮助.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读