Streaming live at 10am (PST)

How to integrate Facebook comments into dynamic template


I have successfully installed the Facebook comments plugin on my “Stories Template” collection of my Webflow site, however the plugin is showing site-wide comments rather than unique comment sections for every single story page in the collection.

How do I go about making a unique comment section show on every single Story page in the collection?

Here is my preview link:


1 Like

Any insight?


Making one last request for help on this. Any insight would be tremendously helpful.

Thank you,

I see only div blocks with class “fb_comments”. Where did you add script?

I added the script under Custom Code of the entire site.

<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); = id;
  js.src = "//";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Edit: I also assigned some custom attributes to the Div (found by scrolling to the bottom of the right menu).

It looks like every single FB comment widget depends on site url. and since there is everywhere same url in data-href it keeps showing same comments everywhere.

I would try do remove data-href atribute and look how it works

Awesome I will try this.

Also… great test comment :wink:


^^^ I just laughed so hard at this hahaha. Glad you all were able to find a solution :smiley: @sabanna did you use this? haha

Yes, exactly this one.
I am not sure that solution will work yet :confused: But really hope

1 Like

At least some fun along with the problem :wink:

I am trying it right now. Will report back.

1 Like

Yikes so it broke it without the data-href:

As you can see on this example article the comments flash a red error message, then disappear. I think I might need to generate a data-href link for every single page, no?

I wish I could set the data-href to some $link (this pulling in the current site’s link), but unfortunately I don’t think that is possible in Webflow.

I am exporting the site, though, so this could be the last thing I do outside of Webflow.


Pity :frowning:

Why you did not try Disqus comments?

Client wants Facebook comments for growth reasons (whenever someone comments, it shows on your Facebook Wall). I had Disquis initially and they requested Facebook comments explicitly for this reason.

I will just manually make the change outside of Webflow when I export the code.

But CMS site will be exported without dynamic data

These are all fake stories, users, and image. Unless of course you’re telling me that the entire framework for CMS gets lost upon export? :neutral_face:

It will loose CMS and dynamic functionality because it will be disconnected from database

Hmm I see. The client is paying someone else to port it to Wordpress and also has a backend guy who will be hooking it all up so hopefully this won’t be an issue. My task is to build the frontend, and I have built it using lots of the CMS elements offered by Webflow.

Could someone from Webflow shed some more light on the reality of exporting CMS? What exactly stays, and what goes?


go to this thread here it explains a great way to go from webflow to wordpress:

I’m going to attempt to get fb comments on my different pages too.

1 Like

Hey guys, just wanted to post an updated on this - due to our recent Dynamic Embed Code feature, it is now possible to integrate Facebook Comments :slight_smile:

Take a peek here for an example:

Use the preview link to see how it is done:

If you have any trouble, just shoot me a DM - happy to help!