Issue with AMP support for Instagram Reels
Impacted plugin
Jetpack
Quick summary
We found that Instagram Reels embed are not having support for the AMP.
It is throwing an error when reel url passed and showing white empty box which keeps loading forever.
- Normal embed works - https://www.instagram.com/p/Bu_bcS-gqgb/
- Reel Embed doesn't work - https://www.instagram.com/reel/C-tIU8uyxbP/
Attaching some screenshots too.
We reached to the problem as well in the Jetpack Plugin here (which is supporting only normal reel embed urls with /p/ pattern) - https://github.com/Automattic/jetpack/blob/trunk/projects/plugins/jetpack/modules/shortcodes/instagram.php#L312
Thanks.
Steps to reproduce
- Add Instagram reel embed to the editor. i.e - https://www.instagram.com/reel/C-tIU8uyxbP/
- Save the article
- Visit the page in AMP mode
- Or check the rest endpoint with amp parameters. It will show the
data-shortcodeattribute empty for the embed.
A clear and concise description of what you expected to happen.
Instagram reel embed should work same as normal post embeds.
What actually happened
It is throwing an error when reel url passed in embed and showing white empty box which keeps loading forever.
Impact
Most (> 50%)
Available workarounds?
No but the platform is still usable
If the above answer is "Yes...", outline the workaround.
No response
Platform (Simple and/or Atomic)
No response
Logs or notes
No response
OpenAI suggested the following labels for this issue:
- [Feature Group] Content Management: The issue concerns the management of content on the site through Jetpack, particularly with Instagram Reels embed functionality.
- [Feature] Shortcodes / Embeds: This issue directly relates to embedding functionality for Instagram Reels, which utilizes shortcode integration.
- [Feature] Jetpack CLI: The issue is specific to the Jetpack plugin, which is mentioned throughout the problem and impacts embedding capabilities.