IOS 8.3 and later, Facebook text not inserted

After upgrading to iOS 8.3, text is not inserted into the sharing dialog

I use standard

UIActivityViewController *vc = [[UIActivityViewController alloc] initWithActivityItems:items applicationActivities:applicationActivities]; NSArray *excludeActivities = @[UIActivityTypeAssignToContact]; vc.excludedActivityTypes = excludeActivities; if (IsUserInterfaceIdiomPad) { vc.popoverPresentationController.sourceView = self.navigationController.view; } [self.navigationController presentViewController:vc animated:YES completion:^{ }]; 

where the elements are NSString and NSURL

+5
source share
2 answers

It seems that Facebook does not want the application to first divulge the dialogue with the text :(

He doesn't need to do anything with the iOS version, but with the build in the Facebook application (since the share processes are somehow related to the FB application)

This is stupid, and on Android you couldnโ€™t do it either (it was disconnected a long time ago). Hopefully Facebook will revise this as it will result in fewer stocks, and some may opt out of the share option

Note. If the user does not have the FB application installed (he uninstalled it), then the text is added to the status, but I think that there are only a small number of users, but maybe a good reason to still provide the text to the shared elements

+9
source
  NSString *strName= @"Mohit Thatai"; FBSDKLoginManager *login = [[FBSDKLoginManager alloc] init]; [login logInWithReadPermissions: @[@"public_profile", @"email"] handler:^(FBSDKLoginManagerLoginResult *result, NSError *error) { if (error) { NSLog(@"Process error"); } else if (result.isCancelled) { NSLog(@"Cancelled"); } else { FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init]; [content setContentTitle:@"GPS Tracker"]; [content setContentDescription:[NSString stringWithFormat:@"%@ shared an interesting link\n This might be interesting to you: GPS Tracker for Kids",strName]]; content.contentURL = [NSURL URLWithString:[NSString stringWithFormat:@"http://gpsphonetrackerkids.com"]]; [FBSDKShareDialog showFromViewController:self withContent:content delegate:nil]; } }]; 
0
source

All Articles