使您的网站在LinkedIn上可共享 [英] Making your site shareable on LinkedIn

查看:84
本文介绍了使您的网站在LinkedIn上可共享的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使我们的网站共享链接时遇到了一些问题,我一头雾水. og:meta标记看起来都很好,facebook刮板很好用,但是linkedIn刮板没有...而且img等不在受保护的文件夹中或类似的东西上.

I'm having a few issues with making our site shareable on linked in and I'm at a loss. The og: meta tags all look fine, the facebook scraper picks it up fine, but the linkedIn scraper does not... and the img etc are not on a protected folder or anything like that.

在检查开发人员工具时,对url-preview?url =链接的get请求显示img等不存在.

When inspecting the developer tools the get request to the url-preview?url= link shows that the img etc.. aren't there.

图像小于1mb,所有og:遵循meta标签.唯一可能不是100%的原因是图像比例不是1/4或4/1(是2/1)...但这只是一个建议,而不是一成不变的规则.

The image is less than 1mb, all og: meta tags are obeyed. The only think that may not be 100% is the image ratio is not 1/4 or 4/1 (it's 2/1)... But that is only a recommendation and not a hard and fast rule.

LinkedIn是否提供类似于FB的功能( https://developers.facebook.com/tools/debug/)在哪里可以测试刮板并重新运行?还是有另一种方法可以调试呢?任何帮助表示赞赏.

Does LinkedIn provide something similar to FB (https://developers.facebook.com/tools/debug/) where you can test the scraper and re-run it? Or is there another way to debug this? Any help appreciated.

https://www.hipla.co.uk (我正在尝试的页面是分享).

https://www.hipla.co.uk (is the page i'm trying to share).

欢呼

推荐答案

所链接的事件没有提供与FB或twitter相似的功能来测试OG元标记并重新抓取页面.他们将页面缓存7天,然后再次重新抓取.但是,只需将GET参数添加到URL,即可刷新linkedIn搜寻器缓存,即 https://www .hipla.co.uk?123 .

It transpires linked in doesn't offer a similar facility to FB or twitter to test the OG meta tags and re-scrape the page. They cache a page for 7 days and then re-scrape again. However, you can refresh the linkedIn crawler cache simply by appending GET params to the URL, i.e. https://www.hipla.co.uk?123.

我最终弄清楚了我们的问题是什么.我们使用的是通配符证书(对于多域,因此我们可以为多个子域使用一个ssl证书),这意味着我们必须在apache default-ssl.conf文件中设置服务器名称,但是其中有一个错字www实例...这意味着它给出了一个SSL错误(针对linkedIn搜寻器),该错误无法使用linkedIn进行调试(如果是一个词),但由于在使用twitter测试Twitter元数据标签时遇到SSL错误而被发现卡验证器.希望这对其他在ssl设置中有错字的人有所帮助.请注意,使用浏览器看不到ssl错误,因为一切看起来都很好.

I eventually figured out what our issue was. We were using a wildcard cert (for multi domain, so we could have a single ssl cert for multiple subdomains) which meant we had to set the server name in the apache default-ssl.conf file, but we had a typo in it for the www instance ... which meant it gave an SSL error (for the linkedIn crawler) which isn't debuggable (if that's a word) using linkedIn but was spotted as we got an SSL error when testing the twitter metadata tags using the twitter card validator. Hope this helps anyone else who has a typo in their ssl settings. Note that the ssl error was not visible using a browser(s) as all looked fine.

这篇关于使您的网站在LinkedIn上可共享的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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