I'm using the great FriendPickerFragment provided but Facebook SDK for Android.
It actually a great tool that saves me a lot of time, but it does miss 1 important functionality.
I have lots of friends in Facebook (more than a 1000) and i could use a search text box to filter friends by name.
is there any native way for doing this in the native SDK ? isn't that weird if there isn't ?
is there any native way for doing this in the native SDK ?
Unfortunately, with the current Facebook android latest SDK, without extending and modifying some parts in it source code, the answer is - no.
the is no way to configure FriendPickerFragment to be with edit text for search filter, or any other way to tell it to open itself with filtered results.
how do I know it for sure? - I studied it source code!. there is nothing secret under the hood..
I guess that's not the answer you were looking for, but that's the true.
by the way - I didn't find FriendPickerFragment that great at all - the list view scrolling works terrible on devices that are not with "top of the technology specs", because they are probably blocking the UI thread to do the image decoding .. so I implemented it myself as you probably know how to do...
comment: the facebook SDK source code is availible, and I guess that if you really want - you can extend (or completly modify) FriendPickerFragment class source code to be whatever you want. for example, extend GraphObjectAdapter.java. that's the base Adapter class been used by the FriendPickerFragment's ListView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With