Title: Open Graph Protocol Tools
Author: artlung
Published: <strong>2010 年 4 月 29 日</strong>
Last modified: 2023 年 12 月 18 日

---

搜索插件

![](https://ps.w.org/open-graph-protocol-tools/assets/banner-772x250.jpg?rev=496427)

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

![](https://ps.w.org/open-graph-protocol-tools/assets/icon-256x256.png?rev=1809691)

# Open Graph Protocol Tools

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

[下载](https://downloads.wordpress.org/plugin/open-graph-protocol-tools.2.0.0.zip)

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

 [支持](https://wordpress.org/support/plugin/open-graph-protocol-tools/)

## 描述

Adds [Open Graph Protocol](http://opengraphprotocol.org/) meta tags to individual
content pages of your WordPress install. Works in coordination with “Like” buttons
and “share” inside Facebook and other consumers of OGP metadata.

## 安装

 1. Upload `open-graph-protocol-tools/` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. To add the “Like” module, use this code:

    ```
    <?php
    /**
     * Include this code on your theme for single blog posts (for example, in your single.php file)
     * or on your blogs main page to include a Facebook "Like" iframe
     */
    if (function_exists('the_opengraphprotocoltools_like_code')):
       the_opengraphprotocoltools_like_code();
    else:
        echo "<!-- opengraphprotocoltools is not activated -->";
    endif;
    ?>
    ```

It would be best if in your theme you also added an attribute in the `&lt;html&gt;`
tag, like this: `&lt;html prefix="og: http://ogp.me/ns#"&gt;`

## 常见问题

### Is there a FAQ?

I’ve gotten some bug reports via [GitHub](https://github.com/artlung/Open-Graph-Protocol-Plugin-for-WordPress),
you can report bugs or make comments there.

### For more information about Open Graph Protocol

Visit [Open Graph Protocol](http://opengraphprotocol.org/).

## 评价

此插件暂无评价。

## 贡献者及开发者

「Open Graph Protocol Tools」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ artlung ](https://profiles.wordpress.org/artlung/)
 *   [ Pat Hawks ](https://profiles.wordpress.org/pathawks/)

[帮助将「Open Graph Protocol Tools」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/open-graph-protocol-tools)

### 对开发感兴趣吗?

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

## 更新日志

#### 1

 * First version.

#### 1.2

 * Changed instructions, fixes encoding errors for non-English content.

#### 1.3

 * Improve issue with home vs front page

#### 1.6

 * Improvements by pathawks to accommodate more types
 * Address double encoding issue with wptexturize modified values

#### 1.7

 * Misc improvements I never enumerated and can’t remember. Whoops.

#### 1.8

 * WordPress 5 compatibility check!

#### 1.9

 * Support for tag archive pages

#### 1.91

 * WordPress 5.5 compatible

#### 2.0.0

 * WordPress 6.4 compatible

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**2 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 2.9 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  语言
 * [English (US)](https://wordpress.org/plugins/open-graph-protocol-tools/)
 * 标签
 * [facebook](https://cn.wordpress.org/plugins/tags/facebook/)[metadata](https://cn.wordpress.org/plugins/tags/metadata/)
 *  [高级视图](https://cn.wordpress.org/plugins/open-graph-protocol-tools/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/open-graph-protocol-tools/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/open-graph-protocol-tools/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/open-graph-protocol-tools/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/open-graph-protocol-tools/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/open-graph-protocol-tools/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/open-graph-protocol-tools/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/open-graph-protocol-tools/reviews/)

## 贡献者

 *   [ artlung ](https://profiles.wordpress.org/artlung/)
 *   [ Pat Hawks ](https://profiles.wordpress.org/pathawks/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/open-graph-protocol-tools/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://joecrawford.com/plugin-donation)