OGP設定における <meta name=”author”> について
OGPの設定方法とFacebookデバッガー の利用方法 の記事でも紹介させていただいた通り、OGP設定が正常になされているか?を確認するツールとして便利な「Facebookデバッガー」ですが、
別のブログでデバッグをかけると <meta name=”author”> の部分でエラーが返ってきたので調べてみました。
目次
デバッガーの結果だとこうです。
エラーの内容は
どうやら <head> 内の <meta name=”author” content=”著者名”> の記述が宜しくない模様…。
著者名の表示には <meta name=”author”> を使うんじゃないの???
と思って調べてみると、こんな記事がありました。
For the Facebook issue, you have some duplicate author meta tags on your page at http://yeow.com.ar/2012/11/arrestado-hombre-por-pensar-en-sexo.html :
<meta name=”author” content=”Nahuel Sanchez”/>
<meta property=”article:author” content=”http://yeow.com.ar/author/Yeow/” />
The second meta tag is from NextGEN Facebook OG and is in the correct OG format for Facebook. The first is from something else (and SEO plugin perhaps?), and this is the one Facebook is complaining about.
http://wordpress.org/support/topic/little-warnning-in-fb-debugger
どうやら
<head> <meta name="author" content="著者名"> </head>ではなく
<head> <meta property="article:author" content="著者名"> </head>がFacebook 向けのOGP 形式らしいです。(間違いの場合はご指摘ください)
今までのサイトで特にエラーが出なかったのは、<meta name=”author” content=””> 自体がソースに書かれていなかった…ため、デバッガーには無視されていたようです。
確かにエラーは解消されました。
スポンサード
コメント