https://github.com/hms5232/hexo-tag-fb-comments
Embed Facebook comments plugin in Hexo without any modification of theme!
https://github.com/hms5232/hexo-tag-fb-comments
comments facebook facebook-comments facebook-comments-plugin fb fb-comments hexo hexo-plugin hexo-tag meta social
Last synced: 4 months ago
JSON representation
Embed Facebook comments plugin in Hexo without any modification of theme!
- Host: GitHub
- URL: https://github.com/hms5232/hexo-tag-fb-comments
- Owner: hms5232
- License: mit
- Created: 2022-01-17T11:44:41.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-11-05T12:19:05.000Z (7 months ago)
- Last Synced: 2025-11-13T00:10:31.667Z (7 months ago)
- Topics: comments, facebook, facebook-comments, facebook-comments-plugin, fb, fb-comments, hexo, hexo-plugin, hexo-tag, meta, social
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/hexo-tag-fb-comments
- Size: 147 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# hexo-tag-fb-comments
[](https://www.npmjs.com/package/hexo-tag-fb-comments)
[](https://github.com/hms5232/hexo-tag-fb-comments/releases)


[](https://circleci.com/gh/hms5232/hexo-tag-fb-comments/tree/main)
[](https://github.com/hms5232/hexo-tag-fb-comments)

[正體中文(zh-TW)](docs/zh-TW.md)| [English (en-US)](docs/en-US.md)
Facebook comments plugin for Hexo!
> [!CAUTION]
> Meta has announced the Facebook comment plugin will be deprecated and on February 10, 2026. See the document for more detail.
>
> Meta 宣布將在 2026 年 2 月 10 日停止 Facebook 留言外掛,詳情請參閱官方文件。
## Requirement
* Hexo 5 or above
## Usage
### Installation
npm:
```
npm i hexo-tag-fb-comments
```
yarn:
```
yarn add hexo-tag-fb-comments
```
### Seting
#### config
Add the following config into your `_config.yml` which at project root:
```yml
fb_comments:
enabled: true
```
Recommend additional item `app_id`, that you can manage comments in FB app. Here is complate config item:
```yml
fb_comments:
enabled: true # Enable FB comments plugin or not.
to: post # post, page or default (everywhere), etc.
app_id: # FB app id
lang: zh_TW # language
num_posts: 5 # The number of comments to show by default.
order_by: reverse-time # The order to use when displaying comments. Can be "reverse_time" or "time".
colorscheme: light # The color scheme used by the comments plugin. Can be "light" or "dark".
width: 100% # The width of the comments plugin on the webpage.
```
See more on https://developers.facebook.com/docs/plugins/comments/
#### Tag
Put tag at where you wnat to embed the plugin:
```
{% fb_comments %}
```
## Feature
* No need to edit theme files.
* You can change position of comments plugin by moving tag easily.
## LICENSE
[MIT License](LICENSE)