FB.XFBML.parse

From Facebook Developer Wiki (FbDevWiki.com)
Jump to: navigation, search

Parse and render XFBML markup in the document. XFBML enables you to incorporate FBML into your websites and IFrame applications.

You can parse the following XFBML tags with this method:


Examples

By default, this is all you need to make XFBML work:

  FB.XFBML.parse();

Alternately, you may want to only evaluate a portion of the document. In that case, you can pass in the elment.

  FB.XFBML.parse(document.getElementById('foo'));

Parameters

Name Type Description
dom DOMElement root DOM node, defaults to body
cb Function invoked when elements are rendered
Personal tools
Namespaces
Variants
Actions
Navigation
Graph API
FQL
Toolbox