這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

OGP Generator

外掛說明

When shared on Facebook, this plugin shows a nice Thumbnail of your posts, pages and site.

Example of Open Graph Protocol tags

<meta property="fb:app_id"      content="you can specify in admin" />
<meta property="og:title"       content="Post Title" />
<meta property="og:type"        content="article" />
<meta property="og:url"         content="Post URL" />
<meta property="og:image"       content="Post thumbnail, attached image, the first image or default image which you upload" />
<meta property="og:site_name"   content="Site Title" />
<meta property="og:locale"      content="Your Locale" />
<meta property="og:description" content="Post excerpt or text generated from your content" />

Rules of the og:image

When a post permalink is shared (is_singular).

  1. If your post has a post-thumbnail, that will show up.
  2. If not, this plugin shows the images attatched to the post.
  3. If not, this plugin shows the images which is in the content.
  4. If not, this plugin shows the default image, which you upload in Settings > Reading > OGP Settings.
  5. 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.

螢幕擷圖

  • You can set default image of the og:image, and put your app_id or fb:admins id.

安裝方式

  1. Upload nskw-ogp-generator folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings > Reading > OGP Settings to set image and ID.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈OGP Generator〉的開發相關工作。

參與者

〈OGP Generator〉外掛目前已有 1 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈OGP Generator〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1

  • First release.