Facebook Application Programming Step by step tutorial - part 18. This is the most cool part of Facebook. FBML to make your life more comfortable. In building a Facebook application, you can take advantage of the UI Element FBML. With the UI element, you do not have to bother to write much code to produce a display. You only need a few lines of code only.
So by using the UI Element and widgets, you will benefit:
- You do not have to waste your energy for the needs you expect.
- Application you create will be felt Facebook taste
Well, in short, you can take advantage of the UI element in making display at canvas page. There are several core UI element for header and navigation that you must know:
- Dashboard page header (fb:dashboard)
- Dashboard navigational link (fb:action)
- Dashboard create button (fb:create-button)
- Dashboard help link (fb:help)
- Title header (fb:header)
- Media header (fb:mediaheader)
- Navigation tabs (fb:tabs, fb:tab-item)
The elements above are core elements of the UI Element. These elements are the basis for making the interface in your application.
As mentioned above, you can also add widgets in your application. Facebook has several widgets that you can use. You can just put on your canvas page. Here is a list of widgets that you can use:
- Discussion board (fb:board)
- Comments wall (fb:comments)
- Do-it-yourself wall “constructor kit” (fb:wall, fb:wallpost, fb:wallpost-action)
- Friend selector box (fb:friend-selector)
- Type-ahead text box (fb:typeahead-input, fb:typeahead-option)
Previous: Facebook Programming: FBML - Fb:if and fb:switch
Next: Facebook Programming: FBML - Using UI Element