| FBML has been deprecated. Starting June 1, 2012 FBML apps will no longer work as all FBML endpoints will be removed. If you are building a new application on Facebook.com, please implement your application using HTML, JavaScript and CSS. You can use our JavaScript SDK and Social Plugins to embedded many of the same social features available in FBML. |
Renders a predictive friend selector input for a given person. You can use this tag inside an fb:request-form to select users for whom a request can be sent.
Allows users to also invite their non-Facebook email contacts through an email contact importer. In order to disable, this feature, see fb:request-form-submit .
| Name | Type | Description |
|---|---|---|
| uid | int | The user whose friends you can select. Default value is the uid of the currently logged-in user |
| name | string | The name of the form element. Default value is |
| idname | string | The name of the hidden form element that contains the user ID of the selected friend. If you are using this tag inside fb:request-form, do not override the default. Default value is |
| include_me | bool | Indicates whether or not to include the logged in user in the suggested options. Default value is false |
| exclude_ids | array | A list of user IDs to exclude from the selector. (comma-separated) |
| include_lists | bool | Indicates whether or not to include friend lists in the suggested options. Default value is false |
| prefill_id | bool | A single user ID to pre-populate in the selector. If the viewing user cannot see the prefilled user's name due to privacy, then this parameter will be ignored. Note that this cannot be used inside an |
<fb:friend-selector uid="123445" name="uid" idname="friend_sel" />
<form action="http://www.example.com/handler.php" id="testForm" method="post"> <fb:friend-selector uid="12345" name="uid" idname="grab_me_please" prefill_id="7906796"/> <INPUT type="submit" value="test"> </form>