Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
知っているようで知らないOGPの書き方
Search
もなか
October 23, 2021
Technology
0
390
知っているようで知らないOGPの書き方
2021年10月16日㈯に、もりけん塾の勉強会で登壇した際に使用したスライドです。
もなか
October 23, 2021
Tweet
Share
More Decks by もなか
See All by もなか
辛いコードを甘くするカリー化のレシピ
443n0511
0
760
Other Decks in Technology
See All in Technology
Unlocking the Power of AI Agents with LINE Bot MCP Server
linedevth
0
100
共有と分離 - Compose Multiplatform "本番導入" の設計指針
error96num
2
730
エンジニアリングマネージャーの成長の道筋とキャリア / Developers Summit 2025 KANSAI
daiksy
1
150
Rustから学ぶ 非同期処理の仕組み
skanehira
1
140
なぜスクラムはこうなったのか?歴史が教えてくれたこと/Shall we explore the roots of Scrum
sanogemaru
5
1.6k
Evolución del razonamiento matemático de GPT-4.1 a GPT-5 - Data Aventura Summit 2025 & VSCode DevDays
lauchacarro
0
210
Django's GeneratedField by example - DjangoCon US 2025
pauloxnet
0
150
Codeful Serverless / 一人運用でもやり抜く力
_kensh
7
440
Generative AI Japan 第一回生成AI実践研究会「AI駆動開発の現在地──ブレイクスルーの鍵を握るのはデータ領域」
shisyu_gaku
0
300
「何となくテストする」を卒業するためにプロダクトが動く仕組みを理解しよう
kawabeaver
0
420
これでもう迷わない!Jetpack Composeの書き方実践ガイド
zozotech
PRO
0
970
Terraformで構築する セルフサービス型データプラットフォーム / terraform-self-service-data-platform
pei0804
1
190
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
368
19k
BBQ
matthewcrist
89
9.8k
Making Projects Easy
brettharned
117
6.4k
Producing Creativity
orderedlist
PRO
347
40k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Reflections from 52 weeks, 52 projects
jeffersonlam
352
21k
A Tale of Four Properties
chriscoyier
160
23k
Designing for Performance
lara
610
69k
Transcript
知っているようで知らない OGPの書き方 もりけん塾勉強会
自己紹介 OGP is 何? OGPをしないとどうなる? OGPを使うには まとめ 1. 2. 3.
4. 5. アジェンダ
自己紹介
自己紹介 もなか@js 詰まったらパン作る人 ソフトウェア開発会社でテスター兼コーダーとして勤務 パンを焼くのが好き ▶Twitter:@ruby443n
OGP is 何?
OGPとは? "The Open Graph protocol enables any web page to
become a rich object in a social graph." 任意のWebページをソーシャルグラフ内のリッチオブジェクトにすることを可能 にするものです。 ”The Open Graph protocol was originally created at Facebook” もともとFacebookで生まれたものです。 公式サイト https://ogp.me/#metadata より
これ
OGPをしないとどうなる?
OGP設定しないとこうなる 中身がわからないからリンクを押しずらい
OGP設定するとこうなる 中身がわかるからリンクを押したくなる
結論:絶対設定するべき
OGPをつかうには
OGP基本設定 こちらを<head>タグ内に設置
OGP基本設定”og:title” サイトのタイトルを指定 og:titleに<title>タグと別の言 葉を設定すると、そちらが優先 して表示される。 文字数は20文字以内が適切。
OGP基本設定”og:url” WEBページのURLを指定 URLは相対パスではなく絶対 パスで記述
OGP基本設定”og:type” website: WebサイトTOPページ blog: ブログTOPページ article: 記事ページ等のページ product: 製品紹介ページ
OGP基本設定”og:description” 60〜80文字の概要説明を設定
OGP基本設定”og:image” シェア時に表示する画像を指定 こちらも絶対パスで指定 基本サイズは幅1200px高さ630px
OGP画像シュミレーターが便利
OGP画像シュミレーターが便利
Twitter用設定"twitter:card" summary_large_image summary
Twitter用設定"twitter:card" player ビデオやオーディオなどのメディアを表示できるカード app アプリ配布用の表示カード。 アプリの名前や紹介文、アプリアイコンに加えて、評価や 価格などの表示もされる。
Facebook用設定"fb:app_id" Facebookインサイトを使 ってトラフィックの分析を 行うことができる。 Facebook for Developers の登録が必要
まとめ
OGP、ちゃんと設定して クリック率をのばそう!
OGPを設定するメリット SNSでクリックされやすい 画像が表示されることでタイムラインの専有 面積が大きくなる
OGPを設定するメリデメ
OGPを設定するデメリット 設定するのちょっとめんどくさい
自己紹介 OGP is 何? OPPをしないとどうなる? OGPを設定するメリデメ OGPを使うには まとめ 1. 2.
3. 4. 5. 6. アジェンダ