Title: Plug Chat
Author: themeshape
Published: <strong>2020 年 4 月 30 日</strong>
Last modified: 2026 年 4 月 4 日

---

搜索插件

![](https://ps.w.org/plug-chat/assets/banner-772x250.png?rev=2295410)

![](https://ps.w.org/plug-chat/assets/icon-256x256.png?rev=2295410)

# Plug Chat

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

[下载](https://downloads.wordpress.org/plugin/plug-chat.zip)

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

 [支持](https://wordpress.org/support/plugin/plug-chat/)

## 描述

Plugchat lets you add a Meta (Facebook) Messenger chat widget to your WordPress 
site so visitors can message you directly.

**Version 3.0 — Rebuilt for Meta’s New Chat Plugin**

Meta has retired the old Customer Chat Plugin SDK. Plugchat 3.0 is rebuilt around
Meta’s current system: you copy the embed code from Meta Business Suite and paste
it into the plugin settings. That’s it — no API keys, no app IDs, no SDK configuration.

#### How it works

 1. Get your Chat Plugin code from Meta Business Suite.
 2. Paste it into Plugchat settings.
 3. Choose left or right position.
 4. Save. Your Messenger chat widget is live.

#### Features

 * Simple embed code setup — paste and save.
 * Position control — left or right side of the screen.
 * Zero external scripts loaded by the plugin — Meta’s embed code handles everything.
 * Fully compatible with WordPress 6.9.
 * Clean uninstall — all settings removed when you delete the plugin.
 * Existing users with legacy settings are not affected — old configuration is preserved
   and accessible.

#### Important Note

Meta (Facebook) deprecated the legacy Customer Chat Plugin SDK. The old method (
entering a Page ID) no longer works for new setups because Meta shut down the SDK
endpoint. This is a Meta platform decision and is outside this plugin’s control.

Plugchat 3.0 solves this by using Meta’s current embed code system. If you were 
using the old version, your settings are preserved and you can reference them while
migrating.

## 屏幕截图

 * [[
 * Plugin settings page with setup guide
 * [[
 * Embed code textarea
 * [[
 * Status indicator showing active/legacy/not configured
 * [[
 * Legacy settings section (for existing users)
 * [[
 * Messenger chat widget on the frontend

## 安装

 1. Upload the plugin files to `/wp-content/plugins/plugchat`, or install through the
    WordPress plugins screen.
 2. Activate the plugin through the ‘Plugins’ screen.
 3. Go to **Plugchat** in the admin sidebar.
 4. Follow the on-screen guide to get your embed code from Meta Business Suite.
 5. Paste the code and save.

#### How to get the embed code from Meta

 1. Go to [Meta Business Suite](https://business.facebook.com/) and select your Facebook
    Page.
 2. Click **Inbox** in the left sidebar, then the **Settings** gear icon.
 3. Select **Chat Plugin**.
 4. Click **Set Up** and customize your widget (color, greeting text, language).
 5. On the installation step, click **Copy Code**.
 6. Paste the full code into the Plugchat “Embed Code” field.

## 常见问题

### The chat widget is not showing on my website?

Make sure you have pasted a valid Meta Chat Plugin embed code in the settings. The
code must contain a reference to facebook.com or messenger.com. Also ensure your
domain is whitelisted in your Facebook Page’s Chat Plugin settings.

### I was using the old version with a Page ID. What should I do?

Your old settings are preserved under “Legacy Settings” on the Plugchat settings
page. Follow the setup guide to get the new embed code from Meta Business Suite.
Once you paste the new code and save, the new method takes priority automatically.
Your old settings remain available for reference.

### Can I display multiple chat widgets?

No. Only one Messenger chat widget can be active per page.

### Does Plugchat collect any data?

No. Plugchat stores only your settings in the WordPress database. The chat itself
runs entirely through Meta’s servers.

### What happens when I uninstall the plugin?

All plugin settings (embed code, position, and any legacy settings) are removed 
from your database. Deactivating the plugin does not delete settings.

### The embed code field shows an error when I save?

The plugin validates that your code contains a reference to a Meta/Facebook domain.
Make sure you are pasting the exact code from Meta Business Suite without modifications.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ themeshape ](https://profiles.wordpress.org/themeshape/)
 *   [ themeplugs ](https://profiles.wordpress.org/themeplugs/)
 *   [ devshagor ](https://profiles.wordpress.org/shagors/)

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

[帮助将「Plug Chat」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/plug-chat)

### 对开发感兴趣吗?

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

## 更新日志

#### 3.0.0

 * **Major rebuild**: Plugin now uses Meta’s Chat Plugin embed code instead of the
   retired SDK.
 * New: Embed code textarea — paste your code from Meta Business Suite.
 * New: On-screen setup guide with step-by-step instructions.
 * New: Status indicator showing Active, Legacy Mode, or Not Configured.
 * New: Admin notice on plugins page prompting setup or migration.
 * New: Embed code validation — only accepts snippets with Meta/Facebook domains.
 * Improved: Legacy settings preserved and accessible in a collapsible section.
 * Improved: New embed code takes priority; legacy settings used as fallback only.
 * Improved: No external scripts loaded by the plugin — Meta’s embed handles its
   own SDK.
 * Improved: Frontend CSS updated for new embed wrapper positioning.
 * Backward compatible: All existing option values preserved. No data lost on upgrade.

#### 2.0.0

 * Security: Added sanitization callbacks to all settings.
 * Security: Fixed unescaped output in frontend widget.
 * Security: Added capability check on admin page.
 * Performance: Admin assets scoped to plugin page only.
 * Performance: Frontend assets skip loading when unconfigured.
 * Updated: Facebook SDK URL updated.
 * Updated: WordPress 6.9 compatibility.
 * Fixed: uninstall.php now cleans up all options.

#### 1.0.2

 * WordPress 6.1.1 Version Compatibility Check.

#### 1.0.0

 * Initial public release.

## 额外信息

 *  版本 **3.0.0**
 *  最后更新：**2 月前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/plug-chat/) 、 [Spanish (Chile)](https://cl.wordpress.org/plugins/plug-chat/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/plug-chat/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/plug-chat)
 * 标签
 * [chat plugin](https://cn.wordpress.org/plugins/tags/chat-plugin/)[facebook chat](https://cn.wordpress.org/plugins/tags/facebook-chat/)
   [messenger](https://cn.wordpress.org/plugins/tags/messenger/)[WordPress Messenger](https://cn.wordpress.org/plugins/tags/wordpress-messenger/)
 *  [高级视图](https://cn.wordpress.org/plugins/plug-chat/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

 *   [ themeshape ](https://profiles.wordpress.org/themeshape/)
 *   [ themeplugs ](https://profiles.wordpress.org/themeplugs/)
 *   [ devshagor ](https://profiles.wordpress.org/shagors/)

## 支持

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

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