react-social-media-embed
react-social-media-embed copied to clipboard
Facebook and Instagram loading Issue
Hey @danishcognived, did you solve this issue?
yes, I have changed the script, for Facebook
useEffect(() => { const script = document.createElement("script"); script.src = "https://connect.facebook.net/en_US/sdk.js"; script.async = true; document.body.appendChild(script); },[]);
for Instagram
useEffect(() => { const script = document.createElement("script"); script.src = "//www.instagram.com/static/bundles/metro/EmbedSDK.js/d9addf525b6a.js"; script.async = true; document.body.appendChild(script); }, []);
Thanks, dude @danishcognived :)