Skip to content

Instantly share code, notes, and snippets.

@marius92mc
Created August 10, 2014 13:13
Show Gist options
  • Save marius92mc/ff1a1d091594d5a23503 to your computer and use it in GitHub Desktop.
Save marius92mc/ff1a1d091594d5a23503 to your computer and use it in GitHub Desktop.
FBRequest* friends_request = [FBRequest requestForMyFriends];
[friends_request startWithCompletionHandler:^(FBRequestConnection* connection,
NSDictionary* result,
NSError* error)
{
NSArray* friends = [result objectForKey:@"data"];
//...
for (NSDictionary<FBGraphUser>* friend in friends)
{
[friends_name addObject:friend.name];
[friends_id addObject:friend.objectID];
}
[friends_name sortUsingSelector:@selector(localizedCaseInsensitiveCompare:)];
[HMSeenByAll setFriendsListNameSorted:friends_name];
//...
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment