FBML

From Facebook Developer Wiki

Jump to: navigation, search

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.

To see which HTML and FBML tags you can use in various parts of your application, such as canvas pages, email, or Feed stories, see Allowed FBML and HTML Tags.

You can define new FBML tags using Custom Tags. You can also use in your application custom tags that other developers created. To see the list of public tags from other developers, visit the Custom Tags Directory.

Note: For Facebook Connect applications that run outside the Facebook frame, you can use XFBML, which is a separate language from the one described here.

Contents

FBML Tags

Note: For an alphabetical listing, see FBML tags.

Forms


Message Attachments

Additional Permissions



Deprecated Tags

  • fb:if-is-own-profile
  • fb:if-user-has-added-app
  • fb:networklink
  • fb:notif-subject
  • fb:notif-page
  • fb:notif-email
  • fb:profile-action
  • fb:userlink
  • fb:visible-to-added-app-users
  • fb:visible-to-user

Dynamic FBML attributes

Usage Notes


Invalid CSS Attributes

Certain CSS properties are stripped by Facebook Platform for security purposes. This section needs updating. We'll get to it soon.

As of Dec 7, 2007, "position: absolute" maybe cause compatibility problems as mentioned here: http://developers.facebook.com/news.php?blog=1&story=56


See Also


External Links

reference