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 URL of reel with username on it seems not working #86

Closed zecka closed 1 month ago

zecka commented 1 month ago

Following url parameter doesn't work https://www.instagram.com/username/reel/postid/

Probably due to this line https://github.com/justinmahar/react-social-media-embed/blob/c8b112016979db0a72a68e042b4c8bc79bf55ee4/src/components/embeds/InstagramEmbed.tsx#L163

Following commit make the fix for usernam/p/postid but not take into account reel https://github.com/justinmahar/react-social-media-embed/commit/8afab04d01e1f94053be02df4b6d8f5f58d3e5b7

This issue seems to be related to orher issues https://github.com/justinmahar/react-social-media-embed/issues/49

justinmahar commented 1 month ago

Merged #87. Thanks for the patch!

Get the latest with:

npm i react-social-media-embed@latest

Give it a shot, let me know how it goes, and we'll close this if you're all set

zecka commented 1 month ago

Perfect it's working now