# How can I troubleshoot Discourse comments embedding feature?

**URL:** https://meta.discourse.org/t/how-can-i-troubleshoot-discourse-comments-embedding-feature/30323
**Category:** Support
**Created:** [2015年六月22日 15:19 UTC](https://meta.discourse.org/t/how-can-i-troubleshoot-discourse-comments-embedding-feature/30323 "2015-06-22T15:19:03Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![amercader](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amercader/32/116336_2.png) [@amercader](https://meta.discourse.org/u/amercader)
#### Post date: [2015年六月23日 09:19 UTC](https://meta.discourse.org/t/how-can-i-troubleshoot-discourse-comments-embedding-feature/30323/4 "2015-06-23T09:19:49Z")

</div>

@purldator here are my embed settings (sorry, I can’t embed images or link to them):

- embeddable hosts: **[ddhstaging.satapps.org](http://ddhstaging.satapps.org)**
- feed polling enabled: {unchecked}
- feed polling url: {blank}
- embed by username: **ddhdatasets**
- embed username key from feed: {blank}
- embed category: **Data Discovery Hub Datasets**
- embed post limit: 100
- embed truncate: {unchecked}
- embed whitelist selector: {blank}
- embed blacklist selector: {blank}

My site is a data catalog based on CKAN , pages are generated from templates. Here’s what the Discourse snippet looks like on [this page](http://ddhstaging.satapps.org/dataset/deimos-1):

```
  <div id="discourse-comments"></div>

<script type="text/javascript">
  var discourseUrl = 'http://forumstaging.satapps.org/',
      discourseEmbedUrl = 'http://ddhstaging.satapps.org/dataset/473cdee9-565c-4a9b-99a8-e8c836837086';

  (function() {
    var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
      d.src = discourseUrl + 'javascripts/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
  })();
</script>

```

Any pointers will be greatly appreciated.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-troubleshoot-discourse-comments-embedding-feature/30323)._
