Facebook 群组 API - 无预览

Facebook Group API - No Preview

下午好,

任何人都知道为什么当我通过 API 创建一个组 post 时,例如以下 link: - https://www.motocasiao.pt/advert/8F70CC3EF/ktm-1190-adventure

没有生成预览,只显示 url..

输出:https://prnt.sc/q05517

提前致谢

https://developers.facebook.com/docs/sharing/webmasters/images/

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 three ways to avoid this and have images render on the first Like or Share action:

  1. Pre-cache the image with the Sharing Debugger: Run the URL through the URL debugger to pre-fetch metadata for the page. This can also be used to update the image for a piece of content.

  2. Pre-cache the image using Graph API: Perform a force-scrape of the URL programmatically using the Graph API to pre-fetch metadata for the page . This can also be used to update the image for a piece of content.

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