fbjsxfbml

Looking for FB.XFBML.parse callback function?


is there a callback function (e.g. onComplete) for this? I would like to display a loader.

FB.XFBML.parse()

Solution

  • Yes, the second parameter is the callback function. For example this should work:

    FB.XFBML.parse(document.getElementById('some_element'), function() {
        alert('I rendered');
    });