动态 OGP 元标记在 React js 应用程序中不起作用
我们已经为 header.js 文件中的每个页面实现了 OGP 元标记,这些标记是从 React js 应用程序中的 CMS API 获取的。
通过使用“检查元素”选项,我们可以在浏览器中的应用程序标头部分中查看 OGP 元标记
无法获取 3rd 方元标记工具,例如 https://www.opengraph.xyz/ 或 https://developers.facebook.com/tools/debug/ 工具并且未显示在页面的“查看源代码”中 我们尝试过使用react-meta-tags和react-helmet npm包,但没有成功
We have implemented OGP meta tags for each page in header.js file which are getting from CMS APIs in React js application.
We are able to see the OGP meta tags in header section of application in browser by using Inspect Element option
Unable to fetch the 3rd party meta tag tools like https://www.opengraph.xyz/ or https://developers.facebook.com/tools/debug/ tools and not showing in "view source" of page
We have tried to use react-meta-tags and react-helmet npm packages but no luck
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论