Search code examples
objective-ciosxcodefacebookfacebook-ios-sdk

iOS SDK 3.0 - FBFriendPickerViewController with FBCacheDescriptor - limited friends list


I would like to present a limited list of friends (e.g. generated by a specific FQL) using FBFriendsPickerViewController. The documentation hints that the friends list can be pre-fetched using FBCacheDescriptor, but the documentation of the latter is poor. I didn't find any example in the SDK samples.


Solution

  • See FBFriendPickerDelegate:

    - (BOOL)friendPickerViewController:(FBFriendPickerViewController *)friendPicker shouldIncludeUser:(id<FBGraphUser>)user