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
214 stars 30 forks source link

YoutubeEmbed Component not showing up. #17

Closed reuel-freitas closed 1 year ago

reuel-freitas commented 2 years ago

I'm using this library in my project, it's a great job. The InstagramEmbed working perfectly, but the YoutubeEmbed is not showing up. I try to put a placeholderImg, and initially it shows the image, and then the comonent disappears. I took some prints for you teste .

patodeveloperka commented 1 year ago

hi, I cave the same problem with facebook; it doesn't show up. does anyone know how to fix it?

vc-ca commented 1 year ago

This now seems to be happening with IG embed as well.

Check the main IG example:

https://justinmahar.github.io/react-social-media-embed/?path=/docs/embeds-instagramembed--main-example

vc-ca commented 1 year ago

16 FB + IG Embeds are fixable by adding a 'data-width' prop

<InstagramEmbed url={imgLink} width={600} dataWith={600} />

justinmahar commented 1 year ago

Hey y'all. Glad you figured out a solution to this -- this weekend I'll look into building a solution into the library, or at least add something to the docs to account for this

justinmahar commented 1 year ago

@patodeveloperka Confirm you are using the correct URL for the facebook post. I added instructions for this to another issue (#14), check it out and give it another shot: https://github.com/justinmahar/react-social-media-embed/issues/14#issuecomment-1297458134

Edit: Also updated the readme with instructions here.

justinmahar commented 1 year ago

@reuel-freitas I can't seem to recreate the issue on my end, and the demo site example is working fine. Any way you could share a link to the code sandbox you're seeing the problem in? FYI the YouTube embed is not my own code, I'm using the react-youtube package to do the heavy lifting there. Maybe codesandbox itself is blocking the embed?

justinmahar commented 1 year ago

Closing for now. Open a new issue if the problem persists.