Created
June 17, 2022 01:54
-
-
Save shingorow/80ce745f6bf460c694e994e51251cb1e to your computer and use it in GitHub Desktop.
OGPとTwitter Cardのチートシート
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- OGP --> | |
<meta property="og:url" content="{ url }" /> | |
<meta property="og:type" content="{ website || article || blog || and more url(https://ogp.me/#types) }" /> | |
<meta property="og:title" content="{ page_title } - { site_title }" /> | |
<meta property="og:description" content="{ description }" /> | |
<meta property="og:site_name" content="{ site_name }" /> | |
<meta property="og:image" content="{ image_url }" /><!-- size 1200 * 630 --> | |
<!-- 確認ツール https://developers.facebook.com/tools/debug/?locale=ja_JP --> | |
<!-- Twitter Card --> | |
<meta name=”twitter:card” content="{ summary || summary_large_image}" /> | |
<meta name=”twitter:site” content="@{ username }" /> | |
<meta name="twitter:title" content="{ title }"> | |
<meta name="twitter:description" content="{ description }"> | |
<meta name="twitter:image" content="{ image_url }"> | |
<!-- https://cards-dev.twitter.com/validator --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment