react-facebook icon indicating copy to clipboard operation
react-facebook copied to clipboard

How to add different comments section to each specific page

Open kiriti999 opened this issue 2 years ago • 4 comments

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

kiriti999 avatar May 22 '23 15:05 kiriti999

let me know how to do that when you find something in facebook documentation

seeden avatar May 22 '23 15:05 seeden

How is facebook documentation related to this? There is no documentation on how to use it for specific page using this library

kiriti999 avatar May 22 '23 16:05 kiriti999

is your application allowed by facebook, is it live or debug mode, is your appId correct? try to use your link in facebook comments plugin and test it if it is working for you

seeden avatar May 22 '23 16:05 seeden

It is in debug mode. App Id is correct. Yes it is working on facebook comments plugin page

kiriti999 avatar May 22 '23 16:05 kiriti999