Skip to content

Instantly share code, notes, and snippets.

@girliemac
Last active April 25, 2018 18:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save girliemac/b226706f0021a218ebe3fedf17633ae0 to your computer and use it in GitHub Desktop.
Save girliemac/b226706f0021a218ebe3fedf17633ae0 to your computer and use it in GitHub Desktop.
Social Meta for Twitter and Facebook
<title>Page Title. up to 60-70 chars</title>
<meta name="description" content="Page description. No longer than 155 characters." />
<!-- Twitter Card data (Large image) -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:creator" content="@author_handle">
<meta name="twitter:title" content="Title Here">
<meta name="twitter:description" content="Page description less than 200 characters">
<meta name="twitter:image" content="http://www.example.com/image.jpg">
<!-- FB Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://example.com/image.jpg" />
<meta property="og:description" content="Description Here" />
<!-- Schema.org. Google+ -->
<meta itemprop="name" content="The Name or Title Here">
<meta itemprop="description" content="This is the page description">
<meta itemprop="image" content="http://www.example.com/image.jpg">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment