[英]How can I control the title and summary for comments posted to the user's wall, in a dynamically generated page?
I have many dynamically generated pages, made by the same PHP file, and I'd like the comments that are being submitted to the user's wall have a different title and summary, considering the page they were sent from. 我有许多动态生成的页面,都是由同一个PHP文件创建的,并且考虑到它们发送的页面,我希望提交到用户墙的注释具有不同的标题和摘要。 Do I need to dynamically generate the meta tags, or is there a way to embed the title and summary in the comments widget script itself? 我是否需要动态生成meta标签,或者是否可以将标题和摘要嵌入评论小部件脚本本身中?
You will need to do the first thing...dynamically generate the og tag in the head of the document. 您将需要做的第一件事...在文档的开头动态生成og标记。 They must be set that way when sending the HTML response to the browser. 将HTML响应发送到浏览器时,必须以这种方式进行设置。 They cannot be successfully updated clientside as Facebook linter only looks at the response stream. 由于Facebook linter仅查看响应流,因此无法在客户端成功更新它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.