OG 标签不适用于 react-helmet 和 Netlify

Sim*_*ton 5 prerender facebook-opengraph netlify react-helmet

我一生都无法弄清楚这一点。以下站点托管在 Netlify 上并启用了预渲染。检查页面时,所有 OG 标签都是正确的。这些标签是使用 react-helmet 注入的。

https://browniepoints.africa/opportunities/volunteer-at-a-soup-kitchen-every-week-on-thursdays

在 Facebook 调试器上抓取上述 URL 时,它会响应:

The following required properties are missing: og:url, og:type, og:title, og:image, og:description, fb:app_id
Run Code Online (Sandbox Code Playgroud)

唯一应该存在的错误/警告之一是app_id,我不在乎。

我已经等了 48 多个小时才清除缓存,我尝试使用附加到 URL 的查询字符串进行抓取,并且图像具有绝对 URL。但即使是描述标签也没有通过。

请使用 react-helmet 和 Netlify 的人对这个问题有明确的认识吗?

Sim*_*ton 2

这与一个已知的预渲染问题有关。

我的解决方法是<!DOCTYPE html>index.html文件中删除声明作为临时解决方法,直到上述问题得到解决。