This function parses and renders XFBML markup in a document on the fly. This could be used if you send XFBML from your server via ajax and want to render it client side. XFBML enables you to incorporate FBML into your websites and IFrame applications.
You can parse the following XFBML tags with this method:
To re-parse all of the XFBML on a page, you can call:
FB.XFBML.parse();
Alternately, to only evaluate a portion of a document, you can pass in a single element.
FB.XFBML.parse(document.getElementById('foo'));
Name | Type | Description |
---|---|---|
dom | DOMElement | root DOM node, defaults to body |
cb | Function | invoked when elements are rendered |