LinkedIn共享URL不显示og:image [英] LinkedIn sharing URL does not show og:image

查看:113
本文介绍了LinkedIn共享URL不显示og:image的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在LinkedIn共享URL中共享帖子时遇到og:image问题.这是带有配置的og标签的测试文章.

I have a problem with og:image on sharing post within LinkedIn sharing URL. Here is test post with configured og tags.

LinkedIn使用其他og:tags,但不使用其他og:image.

LinkedIn takes other og:tags, but not og:image.

我已经使用W3验证器检查了页面.有一些错误,但它们似乎并不重要.我已经检查了其他页面中可使用的LinkedIn共享,并且也存在类似的html错误.

I've checked page with the W3 validator. There are some errors, but they seem not really important. I've checked other page with working LinkedIn sharing and there are also similar html errors.

还尝试使用无格式URL(

Also have tried to use cropped image, using shchemeless URL (like in this article), add og:prefix to HTML.

有人知道如何解决此问题吗?

Does anybody know how to fix this?

推荐答案

后检查器可以帮助...

(1),在Media下的编辑简介"中 (添加或链接到外部文档,照片,站点,视频和演示文稿.)我添加了我的网站,但是没有选择og:image ...即使我已经按照您链接中的建议进行操作问题,但没有显示图像

(1) in my LinkedIn profile, on 'Edit Intro' Under Media (Add or link to external documents, photos, sites, videos, and presentations.) I had added my website but the og:image wasn't being picked... even though I had already followed the advise as per the link in your question but image wasn't being displayed

(2)因此,在我的html标记中添加prefix="og: http://ogp.me/ns#"并将我的网站的"https"更改为"http"后,我再次尝试了,但是没有运气,即使Post Inspector正在捡起它

(2) So after adding prefix="og: http://ogp.me/ns#" in my html tag and changing the "https" to 'http' for my website I tried again, but no luck, even though the Post Inspector was picking it up

(3)我从个人资料简介中删除了媒体并保存了.然后再次添加相同的网站地址,它就像一个魅力.这可能是因为图像是从缓存中拉出的(并且由于不存在,所以我变得一片空白)...但是当我再次添加媒体时,它又进行了一次新的拉取,成功了

(3) I removed the media (from my profile intro) and saved. then added the same website address again and it worked like a charm. This could be because the image was being pulled from the cache (and since it wasn't there, i was getting a blank)... but when i added the media again, it did a fresh pull, which was successfull

希望其他遇到此问题的人对此有所帮助...

Hoping someone else who experienced this issue will be helped with this...

这篇关于LinkedIn共享URL不显示og:image的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆