Skip to content

Instantly share code, notes, and snippets.

@akarve
Last active November 12, 2023 13:35
Show Gist options
  • Save akarve/be57c4ba29a6d625e230 to your computer and use it in GitHub Desktop.
Save akarve/be57c4ba29a6d625e230 to your computer and use it in GitHub Desktop.
Facebook Open Graph tags. Boilerplate for HTML pages.
<!-- Reference: https://developers.facebook.com/docs/sharing/best-practices#tags -->
<!-- CORE og -->
<!-- Title, without branding. -->
<meta property="og:title" content="" />
<!-- Name, not URL (e.g. Apple, not apple.com) -->
<meta property="og:site_name" content="" />
<!-- URL. Should match canonical URL for SEO. Unique identifier for your article. -->
<meta property="og:url" content="" />
<!-- OPTIONAL description. 2-4 sentences. -->
<meta property="og:description" content="" />
<!-- Image for article. Facebook suggests at least 1200 x 630. -->
<meta property="og:image" content="" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<!-- ADDITIONAL og -->
<!-- UID for Facebook insights -->
<meta property="fb:app_id" content="" />
<!-- Object type. Defaults to 'website'. See http://ogp.me/#types -->
<meta property="og:type" content="" />
<!-- Locale. Defaults to en_US. For all locales see https://github.com/akarve/facebook-locales-to-json -->
<meta property="og:locale" content="" />
<!-- Locale for additional translations. See https://developers.facebook.com/docs/internationalization/ and https://developers.facebook.com/docs/opengraph/guides/internationalization-->
<meta property="og:locale:alternate" content="" />
<!-- Author's Facebook Profile or Page -->
<meta property="article:author" content="" />
<!-- Publisher's Facebook Page -->
<meta property="article:publisher" content="" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment