I am trying to convert a Disqus commentary article below to AMP. For this, I use <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>
It loads the iframe and seems to load all of its script dependencies, but nothing is displayed. If you check the contents of the iframe, Disqus printed a message stating that Disqus could not load. I don't know how to debug this from here. Is there something that I am missing, or should I approach it differently?
In addition, a way to submit a comment, such as Disqus, is to have an arbitrary height defined by the plugin. Therefore, I probably cannot set a fixed height on the iframe. What do I need to do to work correctly?
Rahul source share