大网数据广告活动
网站运营与故障问答

Rich Snippets for "Total Likes" instead of a Rating

· 52CE 我爱测

I'm just starting to learn more about rich snippets and I saw that they support aggregate ratings . But on my blog, users cannot rate articles; they can only "like" them (like on Facebook). Some of the articles have hundreds of l…

问题原文

原帖链接 · Nick · CC BY-SA 3.0

I'm just starting to learn more about rich snippets and I saw that they support aggregate ratings. But on my blog, users cannot rate articles; they can only "like" them (like on Facebook). Some of the articles have hundreds of likes and I think being able to see that data from a SERP would give users more motivation to read those articles (much like seeing an article that had, say, 4 or 5 stars out of 5).

I haven't been able to find any information on doing this using rich snippets, so I'm thinking either it's not supported or I'm not looking in the right place.

Do rich snippets support "total likes" instead of a rating?

已采纳解答

原帖链接 · unor · CC BY-SA 3.0

The vocabulary Schema.org doesn’t offer a property for this purpose.

Schema.org defines the type LikeAction, but this is for representing the action that something has liked (or can like) something. (The type UserLikes is deprecated, but wouldn’t help anyway.)

You could represent with Schema.org that your article is the object of multiple LikeAction items (one for each like), but that would be a lot of additional markup/data for articles with many likes.

Example in Microdata:

<!-- user 23 liked article 42  -->
<div itemscope itemtype="http://schema.org/LikeAction">
  <link itemprop="agent" href="http://example.com/users/23" />
  <link itemprop="object" href="http://example.com/articles/42" />
  <link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
</div>

<!-- user 12 liked article 42  -->
<div itemscope itemtype="http://schema.org/LikeAction">
  <link itemprop="agent" href="http://example.com/users/12" />
  <link itemprop="object" href="http://example.com/articles/42" />
  <link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
</div>

<!-- user 5 liked article 42  -->
<div itemscope itemtype="http://schema.org/LikeAction">
  <link itemprop="agent" href="http://example.com/users/5" />
  <link itemprop="object" href="http://example.com/articles/42" />
  <link itemprop="actionStatus" href="http://schema.org/CompletedActionStatus" />
</div>

(You could also add the datetime of the like. If only the count matters, you could omit agent and actionStatus.)

But anyway, Google Search doesn’t offer a Rich Snippet that would show the likes count.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2016-02-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。