Skip to content

Instantly share code, notes, and snippets.

@JuneJuneCute
JuneJuneCute / fbAppInviteDelegateExample.m
Created August 11, 2017 09:18 — forked from vinhnx/fbAppInviteDelegateExample.m
Example on how to determine Facebook app invite completion state
#pragma mark - Facebook App Invite Delegate
- (void)appInviteDialog:(FBSDKAppInviteDialog *)appInviteDialog didCompleteWithResults:(NSDictionary *)results
{
NSLog(@"app invite result: %@", results);
BOOL complete = [[results valueForKeyPath:@"didComplete"] boolValue];
NSString *completionGesture = [results valueForKeyPath:@"completionGesture"];
// NOTE: the `cancel` result dictionary will be