From e4b65f84e216f00deea4991f66fd65ad53c99cb9 Mon Sep 17 00:00:00 2001 From: VladiMihaylenko Date: Tue, 22 Dec 2015 18:05:30 +0300 Subject: [PATCH] [ios] Replaced deprecated facebook method. --- .../Maps/Classes/CustomAlert/FacebookAlert/MWMFacebookAlert.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iphone/Maps/Classes/CustomAlert/FacebookAlert/MWMFacebookAlert.mm b/iphone/Maps/Classes/CustomAlert/FacebookAlert/MWMFacebookAlert.mm index d3301ab15b..d1efd11644 100644 --- a/iphone/Maps/Classes/CustomAlert/FacebookAlert/MWMFacebookAlert.mm +++ b/iphone/Maps/Classes/CustomAlert/FacebookAlert/MWMFacebookAlert.mm @@ -39,7 +39,7 @@ static NSString * const kStatisticsEvent = @"Facebook Alert"; FBSDKAppInviteContent * const content = [[FBSDKAppInviteContent alloc] init]; content.appLinkURL = [NSURL URLWithString:kFacebookAppName]; content.appInvitePreviewImageURL = [NSURL URLWithString:kFacebookAlertPreviewImage]; - [FBSDKAppInviteDialog showWithContent:content delegate:nil]; + [FBSDKAppInviteDialog showFromViewController:self.alertController.ownerViewController withContent:content delegate:nil]; } - (IBAction)notNowButtonTap:(id)sender