wordpressにogpタグを設置しています。
サムネイルが意図しない画像になるので
facebook
https://developers.facebook.com/tools/debug/og/object/
にてデバッグとキャッシュのクリアを行ったのですが、下記のエラーが出ます。
指定したサイトのURLは
https://example.com/test.example.comです。
これは開発環境のurlで、本番環境である
https://example.com/example.com
も存在します。
プロパティ「og:image:url」に指定された値「/wp-content/uploads/2015/11/example.png」はタイプ「url」としてパースできないため、URL「http://example.com/」のオブジェクト(タイプ「website」)は無効です。
To find the object, these are the redirects we had to follow
元のURL https://test.example.com/
og:url http://example.com/The following will be treated as a redirect by the crawler:
A HTTP redirect
A <link rel="canonical" href=".." /> tag
A <meta property="og:url" content=".." /> tag
The final URL, which we tried to extract metadata from is highlighted in 太字
ページのソースをブラウザで確認したのですが、設定したogpタグが正しく表示されていました。
/wp-content/uploads/2015/11/example.png
という指定は設置時にも指定しておらず、またブラウザでページを表示、ソースを検索したのですが見つかりませんでした。
プラグインもogpを設定するものは使用していないのですが、何度キャッシュをクリアしても同じエラーが出ます。
どのような原因が考えられるでしょうか?
よろしくお願いします。
追記
ブラウザで出力されたソースです。
<!DOCTYPE html> <html lang="ja"> <head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"> <meta charset="UTF-8"> <title> example</title> <meta property="fb:admins" content="example-id"> <meta property="og:locale" content="ja_JP"> <meta name="twitter:card" content="summary"> <meta name="twitter:site" content="@test_example"> <meta property="og:type" content="website"> <meta property="og:title" content="example_site"> <meta property="og:url" content="https://test.example.com/"> <meta property="og:description" content="example"> <meta property="og:image" content="https://test.example.com/img/example_logo.png">
回答3件
あなたの回答
tips
プレビュー