ngx-facebook icon indicating copy to clipboard operation
ngx-facebook copied to clipboard

Facebook comment not change when I change URL with angular 5 [routerLink]

Open anhlevfx opened this issue 7 years ago • 1 comments

Hello, I try using your facebook comment. I put it in my ProductDetail module, when first time I load page, everything show perfectly, but when I change URL to new product information (of course the page not reload everything), comment facebook still appear with content of previous product. So, please help me handle this. Thank you

anhlevfx avatar Feb 28 '18 12:02 anhlevfx

common issue when using Facebook plugins in SPA, similar to #74. To fix this, you need to explicitly parse your plugin every time there are changes.

setTimeout(() => { window.FB.XFBML.parse(); });

joscmw95 avatar Apr 13 '18 17:04 joscmw95