jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Issue with AMP support for Instagram Reels

Open DevikVekariya opened this issue 1 year ago • 1 comments

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.

Image

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

  1. Add Instagram reel embed to the editor. i.e - https://www.instagram.com/reel/C-tIU8uyxbP/
  2. Save the article
  3. Visit the page in AMP mode
  4. Or check the rest endpoint with amp parameters. It will show the data-shortcode attribute 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

DevikVekariya avatar Dec 19 '24 09:12 DevikVekariya

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.

github-actions[bot] avatar Dec 19 '24 09:12 github-actions[bot]