
內容簡介
使用這個外掛分享到 Facebook 時,就會顯示你的文章、頁面和網站的縮圖。
Open Graph Protocol 標籤範例
<meta property="fb:app_id" content="你可以在管理員中指定" />
<meta property="og:title" content="文章標題" />
<meta property="og:type" content="文章" />
<meta property="og:url" content="文章 URL" />
<meta property="og:image" content="文章縮圖、附加圖片、第一張圖片或預設圖片(你上傳的)" />
<meta property="og:site_name" content="網站名稱" />
<meta property="og:locale" content="你的語言地區" />
<meta property="og:description" content="文章摘要或從你的內容生成的文字" />
og:image 的規則
當文章鏈接被分享時(is_singular)。
如果文章有特色圖片,就會顯示那張圖片。
如果沒有,這個外掛就會顯示附加在文章中的圖片。
如果還是沒有,這個外掛就會顯示文章內容中的圖片。
如果還是沒有,這個外掛就會顯示你在「設定」>「閱讀」>「OGP 設定」中上傳的預設圖片。
如果還是沒有,這個外掛就不顯示任何東西。(其他 ogp 標籤如 og:title、og:url 等仍會被提供。)
當在 Facebook 上分享的連結不是文章鏈接時(!is_singular)。
當首頁、存檔頁面、搜尋結果頁面或其他頁面在 Facebook 上分享時,og:image 將會是你在「設定」>「閱讀」>「OGP 設定」中指定的圖片。
外掛標籤
開發者團隊
原文外掛簡介
When shared on Facebook, this plugin shows a nice Thumbnail of your posts, pages and site.
Example of Open Graph Protocol tags
Rules of the og:image
When a post permalink is shared (is_singular).
If your post has a post-thumbnail, that will show up.
If not, this plugin shows the images attatched to the post.
If not, this plugin shows the images which is in the content.
If not, this plugin shows the default image, which you upload in Settings > Reading > OGP Settings.
If not, this plugin doesn’t show anything. (Other ogp tags such as og:title, og:url and so on will be served.)
When the link posted on facebook was not a post link (!is_singular).
When home page, archive pages, search result page or what ever else pages are shared on facebook, og:image will be the image you specify in Settings > Reading > OGP Settings.
