What's The Best Way to Make Commenting System
November 21, 2017 at 12:37amWhat's The Best Way to Make Commenting System
November 21, 2017 at 12:37am (Edited 5 years ago)Hello folks..,
I have a plan to make commenting system on my blog. Since Gatsby is a static site generator, is that possible to achieve that? If yes, what's the best way to achieve so?
Any kinds of direction will be appreciated.
Thanks!
October 25, 2018 at 12:31pm
November 1, 2018 at 8:50pm
November 5, 2018 at 11:50am
How did you config your Gatsby site with Facebook comment plugin? I had a problem with it.
import React from 'react'import config from '../utils/siteConfig'import theme from '../styles/theme'import styled from 'styled-components'import FacebookProvider, { Comments } from "react-facebook";import Heading from './Heading'const Wrapper = styled.div`padding: ${props => props.theme.size.elementMargin} 0 ${props => props.theme.size.elementMargin} 0;border-top: 1px solid ${props => props.theme.colors.border};`const PostComments = props => {const { slug } = props;const { facebook, siteUrl } = configreturn (<Wrapper><Heading.H2>Comments</Heading.H2><FacebookProvider appId={facebook}><Commentshref={`${siteUrl}/${slug}/`}width="100%"colorScheme={theme.colors.fbCommentsColorscheme}/></FacebookProvider></Wrapper>);};export default PostComments;
I develop a commenting system called JustComments. I wrote how to add it to a GatsbyJS website https://60devs.com/add-comments-to-your-gatsbyjs-blog-within-two-minutes.html
It's not free if you want managed hosting, but the frontend is open-source https://github.com/justcomments/widget
July 25, 2020 at 8:02pm