I’ve been trying for a while to embed Discourse comments on another site but still haven’t been able to make it work. I started following the instructions on this blog: Embedding Discourse in Static Sites - Evil Trout’s Blog and later on I found other issues, which I was able to fix with guidance from topics on this forum.
I’m now at the stage where I think everything is set up correctly, but for some reason topics don’t get created on the Discourse side (when visiting a page on the client site, the embedded iframe only shows “Loading discussion”). I’ve double-checked (dozens of times actually) the embed settings on Discourse, the embed snippet on the client site (including the canonical URLs), logs, etc and couldn’t find anything wrong, so I started looking into something on our deployment setup.
I just wanted to clarify how the embedding works so I can investigate a bit further. My understanding is that whenever a user visits a page on the blog or site that embeds the comments, a request is made to Discourse, which will pull the referring page contents and create a topic on the fly if it does not exist (my site does not have an RSS feed).
My questions are:
- Is my assumption on how the embedding works correct?
- How could I debug if indeed Discourse is having trouble creating the topics from the remote site?
Apologies if this is somewhat obvious but I’m not familiar with Discourse or Rails
Many thanks in advance