• RSS

OGP設定における <meta name=”author”> について

  • このエントリーをはてなブックマークに追加
  • follow us in feedly

OGPの設定方法とFacebookデバッガー の利用方法 の記事でも紹介させていただいた通り、OGP設定が正常になされているか?を確認するツールとして便利な「Facebookデバッガー」ですが、

別のブログでデバッグをかけると <meta name=”author”> の部分でエラーが返ってきたので調べてみました。

目次

<meta name=”author”> だとエラーになる??

デバッガーの結果だとこうです。
OGP設定における <meta name="author"> について

エラーの内容は
The meta tag on the page was specified with name ‘author’, which matches a configured property of this object type. It will be ignored unless specified with the meta property attribute instead of the meta name attribute.
とのことで、「解決する必要がある云々」とまで書かれているので原因究明を試みましたが…

どうやら <head> 内の <meta name=”author” content=”著者名”> の記述が宜しくない模様…。


<meta property=”article:author”> が正しい??

著者名の表示には <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=””> 自体がソースに書かれていなかった…ため、デバッガーには無視されていたようです。

確かにエラーは解消されました。
OGP設定における <meta name="author"> について



  • このエントリーをはてなブックマークに追加
  • follow us in feedly

コメント

コメントを残す