Title: OGP Generator
Author: ShinichiN
Published: <strong>2014 年 9 月 15 日</strong>
Last modified: 2015 年 12 月 10 日

---

搜索插件

![](https://ps.w.org/ogp-generator/assets/banner-772x250.png?rev=990037)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/ogp-generator/assets/icon-256x256.png?rev=989963)

# OGP Generator

 作者：[ShinichiN](https://profiles.wordpress.org/shinichin/)

[下载](https://downloads.wordpress.org/plugin/ogp-generator.0.5.3.zip)

 * [详情](https://cn.wordpress.org/plugins/ogp-generator/#description)
 * [评价](https://cn.wordpress.org/plugins/ogp-generator/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/ogp-generator/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/ogp-generator/#developers)

 [支持](https://wordpress.org/support/plugin/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. 通过WordPress的“插件”菜单激活插件
 3. Go to Settings > Reading > OGP Settings to set image and ID.

## 评价

此插件暂无评价。

## 贡献者及开发者

「OGP Generator」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ ShinichiN ](https://profiles.wordpress.org/shinichin/)

「OGP Generator」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/ogp-generator/contributors)
为本插件所做的贡献。

[帮助将「OGP Generator」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/ogp-generator)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/ogp-generator/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/ogp-generator/)，或通过[RSS](https://plugins.trac.wordpress.org/log/ogp-generator/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/ogp-generator/)。

## 更新日志

#### 0.1

 * First release.

## 额外信息

 *  版本 **0.5.3**
 *  最后更新：**11 年前**
 *  活跃安装数量 **60+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **4.4.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/ogp-generator/) 和 [Japanese](https://ja.wordpress.org/plugins/ogp-generator/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/ogp-generator)
 * 标签
 * [facebook](https://cn.wordpress.org/plugins/tags/facebook/)[ogp](https://cn.wordpress.org/plugins/tags/ogp/)
 *  [高级视图](https://cn.wordpress.org/plugins/ogp-generator/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/ogp-generator/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/ogp-generator/reviews/)

## 贡献者

 *   [ ShinichiN ](https://profiles.wordpress.org/shinichin/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/ogp-generator/)