Talk:Fb:multi-friend-input

From Facebook Developers Wiki

Jump to: navigation, search

It would make more sense if this was called multi-friend-selector, or if the friend-selector was called friend-input. :/ --Skyler


Is there any way to use FBJS to get at the list of friends in a multi-friend-input? It would be useful for knowing how/when to populate other fields/show elements, etc. --chphilli 11:22, 16 August 2007 (PDT)

I found a solution to determining the count of the friends selected with FBJS:

var params = document.getElementById('myform').serialize(); var curFriend = 0; var friendCount = 0; if( typeof params.ids == 'object' ){ while( typeof params.ids[curFriend++] == 'string' ){ friendCount++; } } // friendCount now has number of friends selected

--Konr Ness 08:57, 3 April 2008 (PDT)

[edit] Feature Suggestion

It'd be great if we could have more customization over what appears in this box. By that I mean the ability have custom choices able to appear in the box, similar to the typeahead widget. --Courtland 03:01, 5 June 2008 (PDT)

- - - - - - - - - - - - - - -

[edit] HELP

Is there anyone who has a working example of how to obtain the ids of the selected friends in ASP.NET working with C#?? I've been trying to get this working but still can't obtain my friends ids!


It would be extremely useful if developers could provide an optional parameter array of user ids that would either be excluded or be the only ones included of the user selection pool. This would be nice, for example, when messaging/notifying members of application-defined "groups" or when choosing friends to invite to an application. In the former case you would only want members of the "group" to show and in the latter you would only want friends who hadn't added the app. Dustin Fineout 13:09, 17 August 2007 (PDT)

  • Hey thanks for adding this! Dustin Fineout 14:20, 29 September 2007 (PDT)
  • Exclude is really helpful but I think I tend to have more need to create a restricted list. I want to constrain users to select from a short list of IDs I provide. (e.g. other friends who have the app installed.) --514457874 09:05, 1 February 2008 (PST)

- - - - - - - - - - - - - - -

Could a pre-populate field be added? I know this has been brought up before but it's would extremely helpful in constructing user editable lists. Example: a user clicks on a picture in collage of friends which would then reload the page with that the corresponding friends added to the M.F.I. via the pre-populate tab. The user could continue adding others via the MFI afterwards.)

(Moved from above, as it belongs here)

  • Is there any way to pre-populate a multi-friend-input? There are times where it could be useful to suggest friends to include in an input field by pre-populating the field. --chphilli 10:46, 17 August 2007 (PDT)

Submitted as bug 345 if you'd like to vote for it.

  • Resolved - Thanks for implementing this guys! --614148 19:13, 11 October 2007 (PDT)

[edit] Possible Bugs

I believe the Mock AJAX bug has been fixed, has anyone tried this recently? --42904324 04:24, 28 September 2007 (PDT)


(Moved from main page)

  • Whenever I use this element, my pages auto-scroll vertically some way down the page, i guess to try and focus on it,[possible bug?] is there any solution to this? 61213996 04:21, 22 August 2007 (PDT)
  • The page auto-scrolls because the form element is set to focused. Is there was a way to insert javascript to focus on another form element to counteract this?

Think there might be a bug with exclude_ids. I have circa 100 and I get a javascript error "Expected identifier, string or number"


I don't think you can use more than one multi-friend-input on one page. Has anyone accomplished this successfully? I have one in a filter and another in a dialog, and when both are present neither works properly (unless I launch the dialog, close, and then attempt to use the selector on the filter). --606672 17:38, 10 October 2007 (PDT)

  • I have a project that requires two multi-friend-inputs on the same page. I'm going to try and find a way to make this work but I'll probably end up splitting up that page into multiple pages as a sort of kludge workaround. It would be very helpful if a name attribute could be provided for this as with fb:editor- tags. Dustin Fineout 08:06, 20 November 2007 (PST)

Is there a work around for this?

---

The only work-around I can find is to use multi-friend-selector instead of multi-friend-input for one of the dialogs. That seems to enable both to work. It's a pain if you're space-conscious, though, because the alt is much bigger.


501393956 19:25, 8 March 2008 (PST)

---

It doesn't appear to be working with Firefox 3 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 I see the control, don't see the prepopulated user and I cannot enter any new users. It works fine in IE7. Update: Firebug was causing the problem. All I needed to do was disable and re-enable it and it works fine again.

---Sean Shannon 14:06, 8 August 2008 (PDT)