Facebookなどで使われている「OGP」の一覧

FacebookなどのSNSで自分のサイトを紹介する際に使うOGPを一覧にしてみました。

特に絶対に指定しなければいけないものではないですが、どのテキストや画像が紹介した先で使われるかわかりませんので、
できれば指定しておきたいものです。

だいたい基本情報の「タイトル」「表示される画像のパス」「概要を説明する文章」を指定する事が多いかなと思います。

基本情報

<meta property="og:title" content="タイトル" /> 
<meta property="og:type" content="オブジェクトのタイプ" />
<meta property="og:url" content="このページのURL" /> 
<meta property="og:image" content="表示される画像のパス" /> 
<meta property="og:description" content="概要を説明する文章" /> 
<meta property="og:site_name" content="サイトの名前" />

場所の情報

<meta property="og:latitude" content="緯度" /> 
<meta property="og:longitude" content="経度" /> 
<meta property="og:street-address" content="住所(番地など)" /> 
<meta property="og:locality" content="市区町村" />
<meta property="og:region" content="都道府県" />
<meta property="og:postal-code" content="郵便番号" /> 
<meta property="og:country-name" content="国名" />

連絡先情報

<meta property="og:email" content="メールアドレス" /> 
<meta property="og:phone_number" content="電話番号" /> 
<meta property="og:fax_number" content="FAX番号" />

動画

<meta property="og:video" content="動画のファイルパス" /> 
<meta property="og:video:height" content="動画の高さサイズ" /> 
<meta property="og:video:width" content="動画の横幅サイズ" /> 
<meta property="og:video:type" content="動画のファイルタイプ(application/x-shockwave-flashなど)" />

音楽

<meta property="og:audio" content="音楽のファイルパス" /> 
<meta property="og:audio:title" content="音楽のタイトル" /> 
<meta property="og:audio:artist" content="音楽のアーティスト名" /> 
<meta property="og:audio:album" content="音楽のアルバム名" /> 
<meta property="og:audio:type" content="音楽のファイルタイプ(application/mp3など)" />

Facebook

<meta property="fb:admins" content="ユーザーID" />
<meta property="fb:app_id" content="アプリID" />

og:typeのカテゴリ

  • Activities
    • activity
    • sport
  • Businesses
    • bar
    • company
    • cafe
    • hotel
    • restaurant
  • Groups
    • cause
    • sports_league
    • sports_team
  • Organizations
    • band
    • government
    • non_profit
    • school
    • university
  • People
    • actor
    • athlete
    • author
    • director
    • musician
    • politician
    • profile
    • public_figure
  • Places
    • city
    • country
    • landmark
    • state_province
  • Products and Entertainment
    • album
    • book
    • drink
    • food
    • game
    • movie
    • product
    • song
    • tv_show
  • Websites
    • article
    • blog
    • website

対応しているSNSはOGPの説明ページがあったりするので、特定のSNSに対応したい場合はそのページを見ておくと良さそうです。

コメント

タイトルとURLをコピーしました