squirrelscan
GitHub

Social audit rules: Open Graph and share previews

Audit rules for share previews: og:image size, og:url against the canonical, social profile links, share buttons and favicons that differ across pages.

Social Media rules read the tags that decide what a shared link looks like: the Open Graph image and its declared size, the canonical identity in og:url, and the profile links that say which accounts are yours. One of them works across the corpus instead, finding pages whose favicon, theme-color or fallback share image says they are running an older template.

Run only these rules

squirrel audit https://example.com --rule-include social

Where to start

These carry the highest severity and weight in the category.

Rules

RuleWhat it flagsSeverityScope
Favicon and theme-color that differ across the siteSite chrome comes from one layout, so a page carrying a different favicon is running a different template. squirrel finds the minority.warningSite-wide
og:image size: the 1200 by 630 recommendationA share image below the recommended size is cropped or upscaled in the preview card. squirrel reads og:image and its declared dimensions.warningPer-page
og:url versus canonical: why they should be the same URLWhen og:url and the canonical disagree, share counts split across two addresses. squirrel normalises both and compares them.warningPer-page
Social profile links: which platforms a page links toLinking your official accounts confirms which ones are yours. squirrel detects profile links and cross-checks the accounts the audit knows about.infoPer-page
Social share buttons: detecting them on content pagesShare buttons make it one click instead of three to pass a page on. squirrel looks for share markup, share libraries and platform share URLs.infoPer-page

Key terms

  • Canonical URL: The URL a page declares, with <link rel="canonical"> or a Link header, as the preferred address for its content.
  • Open Graph: A set of og: meta properties (title, description, image, url) that controls how a link previews when it is shared.
  • Organization schema: Organization structured data naming the business behind a site, its logo, contact points and sameAs profiles.

Core SEO checks that each page has the basic Open Graph and twitter:card tags. Structured data checks the sameAs links that tie an Organization to its social profiles.

Learn more

Disable all Social Media rules

[rules]
disable = ["social/*"]

Type to search…

↑↓ navigate↵ openesc close