Search code examples
androidfacebookweb-servicesfriend

Android checking all the friends in Facebook FriendPicker sample program


I want to know how to select all the friends in Facebook's FriendPicker sample program. I added a 'select all' button in Pickerfragment class. But i couldn't able to find the way to check all the friends.


Solution

  • I could not find a way to do it in Friend Picker sample program. Simply I used graph api to get friends list and listed in list view with a checkbox next to friend's name.

    And I added a button that checks all the friends. When I press the button it will iterate over all the friends and checks them.

    The idea is pretty simple.

    I can't post my code.

    I hope you can get some sample programs to get it done.

    Ask me if you need more help.