質問編集履歴
4
ソースをコードブロックで囲みました。
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
追記
|
|
41
41
|
ブラウザで出力されたソースです。
|
|
42
|
+
```ここに言語を入力
|
|
42
43
|
<!DOCTYPE html>
|
|
43
44
|
<html lang="ja">
|
|
44
45
|
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
|
|
@@ -52,4 +53,5 @@
|
|
|
52
53
|
<meta property="og:title" content="example_site">
|
|
53
54
|
<meta property="og:url" content="https://test.example.com/">
|
|
54
55
|
<meta property="og:description" content="example">
|
|
55
|
-
<meta property="og:image" content="https://test.example.com/img/example_logo.png">
|
|
56
|
+
<meta property="og:image" content="https://test.example.com/img/example_logo.png">
|
|
57
|
+
```
|
3
ソースを追記
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -34,4 +34,22 @@
|
|
|
34
34
|
プラグインもogpを設定するものは使用していないのですが、何度キャッシュをクリアしても同じエラーが出ます。
|
|
35
35
|
どのような原因が考えられるでしょうか?
|
|
36
36
|
|
|
37
|
-
よろしくお願いします。
|
|
37
|
+
よろしくお願いします。
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
追記
|
|
41
|
+
ブラウザで出力されたソースです。
|
|
42
|
+
<!DOCTYPE html>
|
|
43
|
+
<html lang="ja">
|
|
44
|
+
<head prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
|
|
45
|
+
<meta charset="UTF-8">
|
|
46
|
+
<title> example</title>
|
|
47
|
+
<meta property="fb:admins" content="example-id">
|
|
48
|
+
<meta property="og:locale" content="ja_JP">
|
|
49
|
+
<meta name="twitter:card" content="summary">
|
|
50
|
+
<meta name="twitter:site" content="@test_example">
|
|
51
|
+
<meta property="og:type" content="website">
|
|
52
|
+
<meta property="og:title" content="example_site">
|
|
53
|
+
<meta property="og:url" content="https://test.example.com/">
|
|
54
|
+
<meta property="og:description" content="example">
|
|
55
|
+
<meta property="og:image" content="https://test.example.com/img/example_logo.png">
|
2
アドレスに関してもう少し詳しく記述しました。
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
https://developers.facebook.com/tools/debug/og/object/
|
|
6
6
|
にてデバッグとキャッシュのクリアを行ったのですが、下記のエラーが出ます。
|
|
7
7
|
指定したサイトのURLは
|
|
8
|
-
test.example.comです。
|
|
8
|
+
https://example.com/test.example.comです。
|
|
9
9
|
これは開発環境のurlで、本番環境である
|
|
10
|
-
example.com
|
|
10
|
+
https://example.com/example.com
|
|
11
11
|
も存在します。
|
|
12
12
|
|
|
13
13
|
> > プロパティ「og:image:url」に指定された値「/wp-content/uploads/2015/11/example.png」はタイプ「url」としてパースできないため、URL「http://example.com/」のオブジェクト(タイプ「website」)は無効です。
|
1
加筆、修正依頼を受けた箇所を修正しました。また、開発環境と本番環境の2つのurlが存在することを加筆しました。
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -4,15 +4,20 @@
|
|
|
4
4
|
facebook
|
|
5
5
|
https://developers.facebook.com/tools/debug/og/object/
|
|
6
6
|
にてデバッグとキャッシュのクリアを行ったのですが、下記のエラーが出ます。
|
|
7
|
+
指定したサイトのURLは
|
|
8
|
+
test.example.comです。
|
|
9
|
+
これは開発環境のurlで、本番環境である
|
|
10
|
+
example.com
|
|
11
|
+
も存在します。
|
|
7
12
|
|
|
8
|
-
> > プロパティ「og:image:url」に指定された値「/wp-content/uploads/2015/11/
|
|
13
|
+
> > プロパティ「og:image:url」に指定された値「/wp-content/uploads/2015/11/example.png」はタイプ「url」としてパースできないため、URL「http://example.com/」のオブジェクト(タイプ「website」)は無効です。
|
|
9
14
|
> >
|
|
10
15
|
> >
|
|
11
16
|
>
|
|
12
17
|
>
|
|
13
18
|
> To find the object, these are the redirects we had to follow
|
|
14
|
-
> > 元のURL https://
|
|
19
|
+
> > 元のURL https://test.example.com/
|
|
15
|
-
> > og:url http://
|
|
20
|
+
> > og:url http://example.com/
|
|
16
21
|
> >
|
|
17
22
|
> > The following will be treated as a redirect by the crawler:
|
|
18
23
|
> > A HTTP redirect
|
|
@@ -23,7 +28,7 @@
|
|
|
23
28
|
|
|
24
29
|
|
|
25
30
|
ページのソースをブラウザで確認したのですが、設定したogpタグが正しく表示されていました。
|
|
26
|
-
/wp-content/uploads/2015/11/
|
|
31
|
+
/wp-content/uploads/2015/11/example.png
|
|
27
32
|
という指定は設置時にも指定しておらず、またブラウザでページを表示、ソースを検索したのですが見つかりませんでした。
|
|
28
33
|
|
|
29
34
|
プラグインもogpを設定するものは使用していないのですが、何度キャッシュをクリアしても同じエラーが出ます。
|