Skip to content

How to add different comments section to each specific page #220

@kiriti999

Description

@kiriti999

Right now its loading random comments using below code:

<FacebookProvider appId="148636934858508">
    <Comments href="http://www.facebook.com" width="100%" />
</FacebookProvider>

Modified it to pass specific url like this:

export default function CommentsFaceBook({ pageId }: any) {
    const url = `${FRONTEND_URL}/${pageId}`;
    return (
        < FacebookProvider appId="148636934858508" >
            <Comments href={url} width="100%" />
        </FacebookProvider>
    );
}

Now the comments section doesn't load at all

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions