任何人都可以解释FBSDKAppInviteDialog是否由自己实现吗?
- (IBAction)handleFacebookShare:(id)sender {
// SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
// NSString *message = [SocialShareHelper messageFBFromUser:[BMUserManager sharedInstance].selfProfile.username];
// [controller setInitialText:message];
// [controller addURL:[NSURL URLWithString:[[BMUserManager sharedInstance] shareAppLink]]];
// [controller addImage:[UIImage imageNamed:@"share_logo"]];
// [controller setCompletionHandler:[self createGAIHandler:@"social" forAction:@"facebook"]];
//
// [self presentViewController:controller animated:YES completion:nil];
FBSDKAppInviteContent *content =[[FBSDKAppInviteContent alloc] init];
content.appLinkURL = [NSURL URLWithString:@"https://fb.me/**"];
//optionally set previewImageURL
content.appInvitePreviewImageURL = [NSURL URLWithString:@"http://**.jpg"];
// present the dialog. Assumes self implements protocol `FBSDKAppInviteDialogDelegate`
[FBSDKAppInviteDialog showFromViewController:self withContent:content delegate:self];
}