facebook 或 digg 分享,它如何知道故事的哪一部分用作简短摘要?
如果我试图使我的网站可通过 digg 和 facebook 共享,我可以硬设置页面的哪个部分将用作简短描述吗?谢谢
If I am trying to make my site sharable through digg and facebook, can i hard set which section of the page will be used as the short description? thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于 Facebook,您需要使用“分享按钮”。这可以定制,但总是像这样简单:
Facebook 开发者 wiki 声明它发布的简短描述将从页面头部的“description”元标记中获取。同样,Facebook 将尊重“标题”的元标记(这将覆盖该标记)以及图像的链接标记。他们给出的例子是:
一定要查看wiki 页面有关如何指定视频和音频等媒体的详细信息。
至于 Digg,我从未使用过它,但我认为它会类似于 Facebook。至少,我希望它符合 和 标签。
For Facebook you'll need to use the "share button". This can be customised, but will always be something simple like this:
The Facebook developers wiki states that the short description it publishes will be taken from the "description" meta tag in the head of the page. Likewise, Facebook will respect meta tags for "title", which will override the tag, and a link tag for an image. The example they give is:
Be sure to check out the wiki page for details of how to specify media such as video and audio.
As for Digg, I've never worked with it, but I'd assume that it would be similar to Facebook. At the very least, I would expect it to comply with the and tags.