Linkedin 文档可以在这里找到
正如它所说,它需要:
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: "What is the correlation of the Starbucks Chain in the Netherlands?". 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 中效果很好,或者您可以在此处查看元数据。然而,LinkedIn 更加顽固,甚至连If you're unable to set Open Graph tags within the page that's being shared, LinkedIn will attempt to fetch the content automatically by determining the title, description, thumbnail image, etc
.
我知道我没有og:image:width
标签,但 Linkedin 甚至不解析标题、描述或网址。有什么想法可以调试吗?