react-social-media-embed icon indicating copy to clipboard operation
react-social-media-embed copied to clipboard

Facebook and Instagram loading Issue

Open danishcognived opened this issue 1 year ago • 3 comments

image image

danishcognived avatar Sep 06 '23 07:09 danishcognived

Hey @danishcognived, did you solve this issue?

FilipiRafael avatar Jan 05 '24 21:01 FilipiRafael

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); }, []);

danishcognived avatar Jan 08 '24 13:01 danishcognived

Thanks, dude @danishcognived :)

FilipiRafael avatar Jan 08 '24 15:01 FilipiRafael