简体   繁体   English

Og:用于松弛应用程序链接展开的描述元标记

[英]Og:description meta tag for slack app link unfurling

Is og:description or twitter:description tag necessary for slack to unfurl html page's link contents ? slack 是否需要 og:description 或 twitter:description 标签来展开 html 页面的链接内容?

I have a link with og:title , type , url , image and description tags .我有 og:title 、 type 、 url 、 image 和 description tags 的链接。 Slack app unfurls the link fine . Slack 应用程序可以很好地展开链接。 But when I remove the description tag or if set the content of description tag null , then nothing is unfurled .但是,当我删除描述标签或将描述标签的内容设置为 null 时,什么都不会展开。

Ideally besides description other things should have been previewed in slack .理想情况下,除了描述之外,其他内容应该已经在 slack 中进行了预览。 How is title and image and other things dependent on description tag ?标题和图像以及其他内容如何依赖于描述标签?

Slack displays og:description tag, not twitter:description. Slack 显示 og:description 标签,而不是 twitter:description。 Title and image don't anymore depend on description tag.标题和图像不再依赖于描述标签。 Even when og:description is null, removed or spacefilled Slack generates social snippet.即使 og:description 为空,删除或填充 Slack 也会生成社交片段。

In case description is not provided Slack is able to display a title up to 2000 symbols.如果未提供描述,Slack 最多可以显示 2000 个符号的标题。

Slack uses a combination of Open Graph and Twitter tags to unfurl links as shown in Slack API Documentation Slack 使用 Open Graph 和 Twitter 标签的组合来展开链接,如Slack API 文档中所示

For generating purposes Website Open Graph Generator is useful.出于生成目的,网站开放图生成器很有用。 For validating FB Sharing debugging is handy.对于验证FB 共享调试很方便。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM