friends selection custom component
for 1 of my facebook application, i was needed a custom friends selector. the purpose was, i’ve a page from where i’ve to select multiple friends and then i’ll submit those selected friend ids using ajax call without refreshing the page.
then i searched the documentation of fbml. in facebook component, there are 2 types of friends selector
- http://wiki.developers.facebook.com/index.php/Fb:multi-friend-selector
- http://wiki.developers.facebook.com/index.php/Fb:multi-friend-selector_(condensed)

but both of these are totally controlled by facebook and these components are used to send invitation or request to friends. i need a component like figure 2. the fbml code for the second component is below:
<fb :request-form method=”post” action=”http://yourdomain.com/submit.php” content=”Select Friends” type=”gifts” invite=”true”> <div class=”clearfix” style=”padding-bottom: 10px;”> <fb :multi-friend-selector condensed=”true” selected_rows=”0? style=”width: 220px;” /> </div> <fb :request-form-submit /> </fb>
but I was needed a component that would be fully controlled by me. so, I developed a friends selection component and I’m sharing it.






