Fb:fbml-attribute
From Facebook Developer Wiki
Contents |
Description
Contains the value of an attribute of an FBML tag.
This is an alternate way to specify attributes for FBML tags. Use this tag in cases where you want to mark some user-visible text as translatable. Since it is not permitted to nest fb:intl tags inside attributes, the values need to be moved to the body of an fb:fbml-attribute tag directly beneath the tag being modified.
Attributes
| Required | Name | Type | Description | |
| required | name | string | The name of the attribute. |
|---|
Examples
Non-translatable tab label:
<fb:tab-item href="..." title="Education" />
Translatable equivalent:
<fb:tab-item href="...">
<fb:fbml-attribute name="title">
<fb:intl desc="Name of tab with education details">Education</fb:intl>
</fb:fbml-attribute>
</fb:tab-item>
Non-translatable editor button:
<fb:editor-button value="Add" name="add" />
Translatable equivalent:
<fb:editor-button name="add">
<fb:fbml-attribute name="value">
<fb:intl desc="Button: Add an item to a list">Add</fb:intl>
</fb:fbml-attribute>
</fb:editor-button>
