Reference Guide

facebook FBML Reference Guide Page 68 of 159
Fb:typeahead-input
Description
This tag is currently in beta. Please post bugs in the Bug Tracker.
Creates a type-ahead tool (as suggested) that will give you the results that you specify. To add options in the
input box, use fb:typeahead-option.
Attributes
Required Name Type Description
optional name
string
The variable name that is sent in the POST request when the form is submitted.
Examples
fb:fbml version="1.1">
<fb:typeahead-input name="your_input_name">
<fb:typeahead-option value="me"><fb:name uid=1160 capitalize=yes linked=no /></fb:typeahead-option>
<fb:typeahead-option value="ex">x</fb:typeahead-option>
<fb:typeahead-option>why</fb:typeahead-option>
</fb:typeahead-input>
</fb:fbml>
Notes
The tag must be wrapped in a fb:fbml tag with version 1.1.
You must name the input.
You must set autocomplete="off" to prevent the browser's autocomplete from overriding this tag's.
Known Issues
In profile boxes, the autocomplete options cannot extend beyond the edges of the box the application
owns.
HTML and FBML that generates HTML inside of fb:typeahead-option is being interpreted as literal
HTML
Bug Report
A bug report was filed concerning the wrong values of the input posting.
http://bugs.developers.facebook.com/show_bug.cgi?id=1055
A bug report was filed regarding the number of inputs the typeahead can handle and the rendering of
type-ahead suggestions.
http://bugs.developers.facebook.com/show_bug.cgi?id=1145
unable to use indexed name in fb:typeahead value
http://bugs.developers.facebook.com/show_bug.cgi?id=1371
needs ability to set the currently 'selected' item
www.yapish.com