justinmahar / react-social-media-embed

📰 Easily embed social media posts from Facebook, Instagram, LinkedIn, Pinterest, TikTok, X (Twitter), and YouTube in React.
https://justinmahar.github.io/react-social-media-embed/
MIT License
228 stars 30 forks source link

[Instagram] Failed to load resource: The file “embed.js” couldn’t be opened because there is no such file. #62

Closed edshkliaruk closed 11 months ago

edshkliaruk commented 11 months ago

I am faced with Failed to load resource: The file “embed.js” couldn’t be opened because there is no such file. instagram embed, the rest of social medias work fine.

Device: iPhone 12 IOS version: 17.1.2 The project uses Capacitor, so it's reproducible on Application based on Capacitor cross-platform native runtime and only on iPhone with new IOS version.

edshkliaruk commented 11 months ago

I found solution. https://github.com/justinmahar/react-social-media-embed/blob/master/src/components/embeds/InstagramEmbed.tsx#L10

'//www.instagram.com/embed.js' value should be 'https://www.instagram.com/embed.js'

justinmahar commented 11 months ago

@edshkliaruk I've patched the package with the fix you suggested.

npm i react-social-media-embed@latest

Give the latest version of the library a shot and let me know if it's working for you now!

edshkliaruk commented 11 months ago

@justinmahar thank you so much for quick reaction, I appreciate it. For me, everything works correctly with internal testing. I will inform you if I have any cases regarding this issue but right now it works.

justinmahar commented 11 months ago

You got it bud!

Cheers