在过去的几周内,显示共享页面的窗口(在提交共享之前)在第一次共享页面时未显示指定的 og:image。该图像显示在共享帖子本身和后续共享请求中。
我们通过 FB 调试器运行我们的页面,我们得到以下消息
The provided 'og:image' properties are not yet available because new images are processed asynchronously. To ensure shares of new URLs include an image, specify the dimensions using 'og:image:width' and 'og:image:height' tags. Learn More
问题是我们确实定义了 og:image:width 和 og:image:height 标签,FB 调试器甚至在显示此消息的同一页面上显示它们...请参见下面的附图。
知道是什么原因造成的吗?
最佳答案
我认为这是上面提到的 Alexey 的 facebook 错误。 https://developers.facebook.com/bugs/184653232016624/
但是,一种解决方法似乎是通过他们的 API 启动预取。
curl -X POST \
-F "id=http://your.url/here" \
-F "scrape=true" \
"https://graph.facebook.com"
关于即使定义了宽度和高度,Facebook 开放图图像也不会在第一次分享时显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41831761/