相關網站:對於Facebook http://www.fedterra.caFacebook的Open Graph的標籤只在我的源代碼顯示,當我登錄到WordPress的
我打開圖形標籤(和元數據的Twitter)通過在我的源代碼設置在我的WordPress主題的頭文件:
<meta property="og:url" content="http://www.fedterra.ca/" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Fed Terra: Nourishing Body and Mind" />
<meta property="og:description" content="Stay fed and nourish your territory. Jaime Brooks at Fed Terra offers body and mind empowerment, meal planning and arompatherapy, and regularly teaches classes to stay healthy and make your own valuable gifts." />
<meta property="og:image" content="http://fedterra.ca/wp-content/uploads/2016/12/facebookcard.jpg" />
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:url" content="http://fedterra.ca" />
<meta property="og:title" content="Nourishing Body and Mind" />
<meta property="og:description" content="Stay fed and nourish your territory. Jaime Brooks at Fed Terra offers body and mind empowerment, meal planning and arompatherapy, and regularly teaches classes to stay healthy and make your own valuable gifts." />
<meta property="og:image" content="http://fedterra.ca/wp-content/uploads/2016/12/facebookcard.jpg" />
當我在隱身Chrome視窗查看源代碼,我保存頭部OG標籤消失。視圖源:http://fedterra.ca/
不出所料,Facebook的未刮擦的標記。 Twitter卡驗證人說我沒有將他們列入白名單。
看來這個人有同樣的怪癖,但並未發佈一個答案,如何讓標籤,以示對非登錄用戶:open graph tags not being read by Facebook but are in page source
我已經試過:
- 停用任何不必要的插件
- 經由FTP
- 添加標記通過Yoast插件更改頭部文件
到底是如何在設置呢?請顯示您設置這些標籤的完整代碼。 –
Seconding @ IgorYavych的建議包括設置標籤的代碼。我認爲這會產生更多有用的答案。 –
喜伊戈爾,梅根 - 只是想確認你要找什麼樣的代碼量,所以我可以提高我的未來要求。現在請原諒我粗略的理解,但構成標籤的完整代碼的構成是什麼?除了我在問題中提出的元標記之外還有哪些代碼?乾杯。 –