Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Facebook SDK FriendPickerFragment search option

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 ?

like image 369
Asaf Nevo Avatar asked Jan 01 '26 02:01

Asaf Nevo


1 Answers

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

like image 198
Tal Kanel Avatar answered Jan 02 '26 19:01

Tal Kanel