XooCode(){

LikeAction

LikeAction is a ReactAction subtype. The act of expressing a positive sentiment about the object. An agent likes an object (a proposition, topic or theme) with participants.

Full example of schema.org/LikeAction json-ld markup

The markup is verified as valid with Rich Results Test from Google.

schema.org/LikeAction
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LikeAction",
  "name": "Example LikeAction"
}
</script>

Minimal valid version

The smallest markup that still produces a valid LikeAction entity. Use it as the floor. Reach for the advanced example above when you want search engines and AI agents to understand more about your content.

schema.org/LikeAction (minimal)
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "LikeAction",
  "name": "Example"
}
</script>

Google rich results this unlocks

LikeAction is a structural type. It does not produce a rich result on its own.

Its value comes from combining it with a primary type whose markup earns a rich result (Article, Product, Event, and so on). LikeAction becomes the trunk that the primary type branches off viamainEntityorbreadcrumb. Include it on every page as the backbone of your markup.

Common LikeAction mistakes

Mistakes that pass validation but silently fail to earn rich results or mislead consumers walking the graph. Avoid these and your markup will be ahead of most sites in the wild.

  1. 01

    Using bare ReactAction instead of the specific LikeAction subtype

    Wrong
    "@type": "ReactAction"
    Right
    "@type": "LikeAction"

    Specific subtypes carry domain context consumers use; reach for the narrowest applicable type.

Schema properties in this example

Also mentioned in 2 other examples

LikeAction also appears in InteractionCounter, and SocialMediaPosting. See the full LikeAction schema page for every reference.

About the example data

Reference entry in the Xoo Code schema.org catalogue.

Comments

Loading comments...

Leave a comment