FBML
From Facebook Developers Wiki
Facebook Markup Language (FBML) enables you to build full Facebook Platform applications that deeply integrate into a user's Facebook experience. You can hook into several Facebook integration points, including the profile, profile actions, Facebook canvas, News Feed and Mini-Feed.
FBML is an evolved subset of HTML with some elements removed, and others which have been added that are specific to Facebook. You set the FBML for a profile box by calling profile.setFBML through the API. The FBML is cached on Facebook's server until profile.setFBML is called again through a canvas page. For a high-level technical spec for FBML, please see FBMLspec.
Valid HTML Elements
- a
- abbr
- acronym
- address
- b
- bdo
- big
- blockquote
- br
- caption
- center
- cite
- code
- dd
- del
- dfn
- div
- dl
- dt
- em
- fieldset
- font
- form
- h1
- h2
- h3
- h4
- h5
- h6
- hr
- i
- img
- input
- ins
- kbd
- label
- legend
- li
- link
- meta
- ol
- optgroup
- option
- p
- pre
- q
- s
- samp
- script
- select
- small
- span
- strike
- strong
- style
- sub
- sup
- table
- tbody
- td
- textarea
- tfoot
- th
- thead
- tr
- tt
- u
- ul
- var
Facebook tags
- For an alphabetical listing, see FBML tags
User/Groups
- fb:name
- fb:user
- fb:pronoun
- fb:profile-pic
- fb:eventlink
- fb:grouplink
- fb:networklink (deprecated with the new profile design)
- fb:is-in-network
- fb:if-can-see
- fb:if-can-see-photo
- fb:if-is-app-user
- fb:if-is-friends-with-viewer
- fb:if-is-group-member
- fb:if-is-user
- fb:if-user-has-added-app (deprecated with the new profile design)
- fb:user-status
Deprecated Tags
Profile-specific
- fb:add-section-button
- fb:if-section-not-added
- fb:narrow
- fb:wide
- fb:user-table
- fb:subtitle
- fb:profile-action (deprecated with the new profile design)
- fb:publisher-link
Visibility on Profile
- fb:visible-to-owner
- fb:visible-to-user (deprecated with the new profile design)
- fb:visible-to-friends
- fb:visible-to-app-users
- fb:visible-to-added-app-users (deprecated with the new profile design)
- fb:visible-to-connection
- Fb:18-plus
- Fb:21-plus
Dynamic FBML attributes
- Visibility (
clicktoshow,clicktohide,clicktotoggle) - Mock AJAX (
clickrewriteid,clickrewriteurl,clickrewriteform) - Forms (
clicktoenable,clicktodisable,clickthrough) - Requirelogin
- FBJS
Usage notes
- Forms
- Images
- CSS, Design, and the DOM
- Javascript
- Flavors
- Facebook User IDs
- Default FBML
- Public Canvas Pages
Invalid CSS attributes
Certain CSS properties are stripped by the Facebook platform for security. This section needs updating. We'll get to it soon.
As of Dec 7, "position: absolute" maybe cause compatibility problems as mentioned here: http://developers.facebook.com/news.php?blog=1&story=56
