I was wanting to embed a photo from my instagram account in to my blog. I thought it would be a simple case of copying the embed code from the photo, paste it in to my edito
The cause of the problem is that the
Runs before the
...
Is present in the DOM. This means that the script doesn't find any blockquotes to turn into iframes on load.
Since the script is marked as async you can run into race conditions where you get a different order of load on each refresh.
You need to make sure the script is loaded after the blockquote is present. Either move the script part at the end of the document. Or if are using JS to add the to the DOM later, you can also run
instgrm.Embeds.process()
After you are sure is in the DOM.
Source: https://www.instagram.com/developer/embedding/