hexo-fbcomments
A simple way to add Facebook comments support to your Hexo posts.
Usage
- In your Hexo website folder type
npm install hexo-fbcomments
- Put the following code inside your
_config.yml
and set the the appId to the one for your site you've created on Facebook for developers.
# Facebook comments - https://github.com/RichardJECooke/hexo-fbcomments/fbcomments:appId: 0 # <---- TODOcolorscheme: dark # (optional) light/darkenabled: true # (optional) true/falselang: en_US # (optional)order_by: time # (optional) time/reverse_time/socialnumPosts: 10 # (optional) defaults to 5
- Add
<%- fbcommentshead() %>
in your theme's post header (before the body tag) and<%- fbcomments(page.permalink) %>
at the bottom of the post. - To style the comments add something like this in your CSS
More
- More information about the facebook comments plugin on the Official Documentation
- Created by Sergio Moura.
- Maintained by Richard Cooke.
- License: MIT