Skip to Content
FBML Essentials
book

FBML Essentials

by Jesse Stay
July 2008
Beginner
192 pages
4h 41m
English
O'Reilly Media, Inc.
Content preview from FBML Essentials

Name

<fb:multi-friend-input/>

Synopsis

<fb:multi-friend-input/>

Renders a form input text box that produces a drop-down list of suggestions for friends as the user types. The difference between this tag and the <fb:friend-input/> tag is that this one allows the user to select multiple friends. The tag produces an array in the POST variables with a list of user IDs that the user selected. The submitted form returns an Array of id[] variables.

FBML-Specific Attributes

Required

None.

Optional

width=[string] default: 350px

The width of the field.

border_color=[string] default: #8496ba

The color of the border.

include_me=[true|false] default: false

If true, includes the logged-in user in the list of friends from which to select.

max=[int] default: 20

The maximum number of friends that can be selected.

exclude_ids=[array] default: none

A comma-separated list of friends to be excluded from the list. This can be useful when used within <fb:request-form/> tags to exclude users who have been invited.

prefill_ids=[array] default: none

A comma-separated list of friends to include as already selected in the selector when the page loads. This cannot be used in <fb:request-form/> tags.

prefill_locked=[true|false] default: false

When true, prevents editing of the preselected prefill_ids IDs. The user also cannot add other users.

Example FBML

Here is example FBML code for <fb:multi-friend-input/>:

<form> <fb:multi-friend-input width="400px" border_color="#000" include_me="true" max="30" exclude_ids="4,1,2,3" prefill_ids="683545112"/> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

The Three Traps That Stymie Reinvention

The Three Traps That Stymie Reinvention

Ryan Raffaelli
What Is Polycloud?

What Is Polycloud?

Lee Atchison
The Jamstack Book

The Jamstack Book

Raymond K. Camden, Brian Rinaldi
What Successful Project Managers Do

What Successful Project Managers Do

W. Scott Cameron, Jeffrey S. Russell, Edward J. Hoffman, Alexander Laufer

Publisher Resources

ISBN: 9780596519186Errata Page