Dynamically loading Facebook comments Plugin throws JS error in IE 6/7/8

I get the following JS error in IE when trying to dynamically load comments plugin.

'null' is null or not an object

dynamic comment loading plugin works fine in Firefox, Chrome, Safari and Opera, but throwing the above error into the whole version of IE (not tested on IE9)

Example page - http://dl.dropbox.com/u/3804052/fb-comments-test.html

In the example page above, click "click me to check the dynamic loading of facebook comments plugin" and you can simulate the dynamic loading of comments plugin and notice the error in IE6 / 7/8

+4
source share
2 answers

The sample link solves my problem. Thanks!

FB.XFBML.parse(); works like a rock star!

+1
source

Do you have these attributes in the tag?

xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml"

They are necessary for the proper rendering of IE.

0
source

Source: https://habr.com/ru/post/1346273/


All Articles