我正在尝试在我的LinkedIn个人资料中分享http://gbgtechweek.com/。
我有这个元标记:
<meta property="og:image" content="http://gbgtechweek.com/img/gbgtechweek_img.png" />
然而,LinkedIn选择从页面显示另一张图片(http://gbgtechweek.com/img/goteborg00.jpg)
这是因为尺寸,我该如何解决?
我尝试使用“?!”进行更新最后,LinkedIn会重新获取Open Graph数据,但没有用。
任何解决方案?
答案 0 :(得分:0)
LinkedIn(令人震惊和悲伤!)only use official partners来自http://embed.ly/providers您个人资料中的“项目”。 Open Graph仅适用于LinkedIn Feed /共享更新区域。
否则,您可以上传各种各样的文件类型,但无法明确告诉LinkedIn在个人资料中使用哪个图片。
Embed.ly在您的网站上提供pick up open graph信息,但他们不会优先处理OG信息。事实上,Embed.ly撰写了一篇博文,基本上scoffs at the widespread use of Open Graph tags用于分享以及用户和大型网站如何不信任他们。
编辑:
回答评论:
您可以在嵌入时重新调整内容,例如,在您将网站添加到个人资料中时禁用background-image
,或将background-image
切换为所需内容一个足够长的时间让你在LinkedIn上获得理想的效果。这不是一个有保障的解决方案,因为LinkedIn可能会在稍后(任何!)时间重新安排项目,这会将其设置回background-image
。
答案 1 :(得分:0)
这恰好发生在我身上,原因是og:image
标记中的图片文件名中有重音的Unicode字符(例如á
,é
)。 LinkedIn必须跳过包含这些字符的文件名,因为它在页面上选择了另一个图像。
我将图片文件名更改为没有Unicode字符的图片文件名,并将图片拉入正确的图片。
答案 2 :(得分:0)
LinkedIn仍可以从名为“ oEmbed ”的标签中获取图像。
这里有个例子:
<link rel="alternate" type="application/json+oembed" href="https://www.s-sols.com/api/oembed/1.0/embed?url=https%3A%2F%2Fwww.s-sols.com%2Fhow-make-multipage-website">
我在WordPress中遇到了这个问题。解决方法是删除此标签为described here:
remove_action('wp_head', 'wp_oembed_add_discovery_links', 10);
remove_action('wp_head', 'wp_oembed_add_host_js');
remove_action('rest_api_init', 'wp_oembed_register_route');
remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10);
答案 3 :(得分:0)
您可以在此处尝试刷新linkedin缓存(针对特定链接):