Skip to content

Instantly share code, notes, and snippets.

@nocodesupplyco
Last active October 31, 2023 16:16
Show Gist options
  • Save nocodesupplyco/2fd03f8c74d2729fc9667f08fc4271bb to your computer and use it in GitHub Desktop.
Save nocodesupplyco/2fd03f8c74d2729fc9667f08fc4271bb to your computer and use it in GitHub Desktop.
Social Share Links + Open Graph Meta Data
<!-- This all goes in the <head> and should be updated to have values specific to your content -->
<!-- Open Graph - Facebook / Pinterest -->
<meta property="og:site_name" content="EXAMPLE" />
<meta property="og:type" content="article">
<meta property="og:url" content="https://example.com/blog/SLUG">
<meta property="og:image:width" content="2400" />
<meta property="og:image:height" content="1260" />
<meta property="og:image:secure_url" content="IMAGE-URL" />
<!-- Twitter -->
<meta name="twitter:url" content="https://example.com/blog/SLUG">
<meta name="twitter:domain" value="example.com" />
<meta name="twitter:title" content="NAME/HEADLINE">
<meta name="twitter:description" content="SUMMARY">
<meta name="twitter:image" content="IMAGE-URL">
<meta name="twitter:site" content="@example">
<meta name="twitter:creator" content="AUTHOR-TWITTER-HANDLE">
<meta name="twitter:label1" value="Written by" />
<meta name="twitter:data1" value="AUTHOR-NAME" />
<meta name="twitter:label2" value="Published on" />
<meta name="twitter:data2" value="PUBLISH-DATE" />
<meta name="twitter:card" content="summary_large_image">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment