Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有许多动态生成的页面,由同一个 PHP 文件创建,考虑到它们是从哪个页面发送的,我希望提交到用户墙的评论有不同的标题和摘要。我是否需要动态生成元标记,或者有没有办法将标题和摘要嵌入评论小部件脚本本身?
您需要做的第一件事...在文档头部动态生成 og 标记。在将 HTML 响应发送到浏览器时,它们必须以这种方式设置。它们无法在客户端成功更新,因为 Facebook linter 只查看响应流。