Tag-based languages such as ColdFusion and JSTL have many tags that build portions of your application for you। Similarly, FBML has a set of tags to help you build some very useful portions of your application:

  • <fb:comments> generates code to add comments to an application। It takes care of posting and redrawing pages that are posted to for a given UID.
  • <fb:google-analytics> adds the JavaScript to your application so you can use Google Analytics to track your application usage.
  • <fb:mobile> displays content for mobile users (http://m.facebook.com/)। Content outside of these tags will be ignored for mobile users.
  • <fb:random> randomly rotates certain parts of your application content (for quotes, pictures, or even advertising). This tag not only can randomly choose an element from within the tag (defined by the <fb:random-option> tag) but also can weight these options to appear more often (or less often) than other options.

0 comments