You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for great lib! I encounter this problem with dynamic language switching for embeded facebook page on gatsbyjs-powered site. When I try to use another lib(for facebook chat), it does not have this issue. Maybe you can kindly see their approach?
constintl=useIntl()useEffect(()=>{functionreplaceFBLocale(){constfbIframes=document.querySelectorAll("iframe[src*=facebook]")fbIframes.forEach((fbIframe)=>{fbIframe.src=fbIframe.src.replace(/&locale=[a-zA-Z_]+/,"&locale="+intl.locale.replace("-","_"))})return!!fbIframes.length}// on facebook iframe first loadletobserverif(!replaceFBLocale()){observer=newMutationObserver(()=>replaceFBLocale()&&observer.disconnect())observer.observe(document.body,{attributes: false,childList: true,characterData: false,subtree: true})}return()=>observer&&observer.disconnect()},[intl.locale])
Thank you for great lib! I encounter this problem with dynamic language switching for embeded facebook page on gatsbyjs-powered site. When I try to use another lib(for facebook chat), it does not have this issue. Maybe you can kindly see their approach?
https://github.com/Yoctol/react-messenger-customer-chat/blob/master/src/MessengerCustomerChat.js
you need to "refresh" page because you need to redownload new sdk file. if you will found another way just let me know
Originally posted by @seeden in #82 (comment)
The text was updated successfully, but these errors were encountered: