I'm trying to convert an article that has Disqus comments at the bottom to AMP. To do this I'm using an <amp-iframe/>
:
<div id="disqus_thread">
<amp-iframe
src="https://disqus.com/embed/comments/?https&base=default&version=11a9d09102788744769550f3928faf15&f=<<DISQUS ID GOES HERE>>&t_u=<<DISQUS SITE URL GOES HERE>>&s_o=default"
sandbox="allow-same-origin allow-forms allow-modals allow-scripts allow-popups"
layout="responsive"
frameborder="0"
width="600" height="500">
</amp-iframe>
</div>
The iframe loads, and it seems to load all of its script dependencies, but nothing is shown. If you inspect the content of the iframe, Disqus has printed a message saying Disqus was unable to load. I don't know how to debug it from here. Is there something I'm missing, or should I be approaching this differently?
Also, the way a comment feed like Disqus works is to have an arbitrary height determined by the plugin. So I probably can't set a fixed height on the iframe. What do I need to do to get that to work correctly?