简体   繁体   English

如何在动态生成的页面中控制张贴到用户墙上的评论的标题和摘要?

[英]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.

相关问题 如何仅获取当前concrete5登录用户发布的评论? - How do I grab only comments posted by current concrete5 logged in user? 如何将评论添加到自定义页面 - how can i add comments to to a custom page 如何在django评论中包含用户个人资料的图像/徽标 - How can I include user profile's images/logos on django comments 如何显示另一家公司网站上Facebook页面上的评论? - How can I display comments from a facebook page on another company's website? 如何在没有实际评论的情况下动态创建facebook评论textarea? - How can I dynamically create only the facebook comments textarea without the actual comments? Django评论应用程序:如何禁用重定向到posted.html的功能? - Django Comments app: How do I disable the redirection to posted.html? 如何使发布到我的网站的评论彼此分开? - How do I make comments posted to my site formatted to be separate from one another? 仅当用户发表了自己的评论时才显示 Wordpress 评论 - Only show Wordpress comments when the user has posted their own comment 是否可以将Facebook评论发布到我的Facebook Page墙上? - Is it possible to have Facebook Comments post to my Facebook Page wall? 如何在Mysql中配置用户注释? - How should I configure user comments in Mysql?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM