Facebook不会自动抓取我的网站的网址 [英] Facebook doesn't crawl my site's urls automatically

查看:61
本文介绍了Facebook不会自动抓取我的网站的网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的博客文章网址:

I have blog post urls like these:

http://www.topluisilanlari.com/blog/goster/48/abc

首先,请更改abc部分(这不会造成页面差异).当我尝试在Facebook上共享此URL时,它不显示页面图像(代码中存在og:image属性),但是当我在Facebook调试器中输入相同的URL并单击获取新的抓取信息"按钮时,我的页面图像将正确显示以及共享功能.

Firstly please change abc part(it doesn not makes diffrence for page). When i try to share this url at facebook it does not show image of page(there is og:image property at code) but when i enter same url at facebook debugger and click "Fetch new scrape information" button then my page image showing properly and at sharing function too.

我该如何解决?

谢谢.

推荐答案

https://developers.facebook.com/docs/sharing/best-practices#precaching :

首次共享内容时,Facebook搜寻器将从共享的URL中抓取并缓存元数据.抓取工具必须至少看到一次图像才能进行渲染.这意味着第一个共享内容的人不会看到渲染的图像

When content is shared for the first time, the Facebook crawler will scrape and cache the metadata from the URL shared. The crawler has to see an image at least once before it can be rendered. This means that the first person who shares a piece of content won't see a rendered image

有两种方法可以避免这种情况,并在第一个喜欢"或分享"操作中渲染图像:

There are two ways to avoid this and have images render on the first Like or Share action:

1.使用URL调试器预缓存图像
通过URL调试器运行URL,以预获取页面的元数据.如果您为某个内容更新图像,则也应该这样做.

1. Pre-cache the image with the URL Debugger
Run the URL through the URL debugger to pre-fetch metadata for the page. You should also do this if you update the image for a piece of content.

2.使用 og:image:width og:image:height 开放图标记
使用这些标签会将图像指定给搜寻器,以便它可以立即呈现图像而不必异步进行.

2. Use og:image:width and og:image:height Open Graph tags
Using these tags will specify the image to the crawler so that it can render it immediately without having to asynchronously.

第二个方法也是如此–通过这些 og 元标记指定预览图像的尺寸.

So do the second one – specify the dimensions of your preview image through those og meta tags.

这篇关于Facebook不会自动抓取我的网站的网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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