Instagram embedding features and layout

Hi!

I have a few questions and suggestions about Instagram posts embedding.

Here’s a post where I put three links: 1 video, 1 photo, and 1 gallery:

Video embedding

  1. The image preview is stretched. Is it possible to prevent this?

    Preview in the forum post:

    Actual Instagram post:

  2. There’s a tall white space on the bottom of the embed. The iframe’s height seems wrong. Is there a way to fix it?


Gallery embedding

The gallery embedding doesn’t use all the available width, but it does for a single image post. Can this be fixed as well?


In a more general way, what can Discourse customize in these embeds? Can it be customized, or is all the content style generated and provided by Instagram itself?

Also, I remember a time when Instagram posts had oneboxes where pictures were uploaded locally, like regular uploads, which prevented the onebox content to disappear if the related Instagram posts was removed. I suppose this is not the case anymore?

I just went through the (frankly) cumbersome task of registering a Meta app that will allow oEmbeds earlier today. I don’t know why they made the process so difficult, especially the part where they want to verify your app works in order to approve the permissions but the functionality of the app depends on the permission existing (!!??). Waiting to hear back soon

I can’t address any of the questions here myself, mostly posting to follow this topic. I did read somewhere on this meta forum that the non-onebox version of Instagram embeds do not play well with infinite scroll, specially due to the variable height. Is that what’s happening here? I’ll also mention that just a quick search for “instagram” on the discourse github repo does a good job at finding the relevant bits of code