Facebook共享打开应用程序的新实例-iOS
我正在使用Facebook iOS SDK和FBSDKShareLinkContent与文本共享url和图像。分享的时候一切似乎都很好。但问题是在共享后,新的应用程序实例被打开。已完成的共享在后台仍处于打开状态 我做错什么了吗?如何避免呢 这是我用来分享的代码Facebook共享打开应用程序的新实例-iOS,ios,objective-c,facebook,fbsdksharekit,Ios,Objective C,Facebook,Fbsdksharekit,我正在使用Facebook iOS SDK和FBSDKShareLinkContent与文本共享url和图像。分享的时候一切似乎都很好。但问题是在共享后,新的应用程序实例被打开。已完成的共享在后台仍处于打开状态 我做错什么了吗?如何避免呢 这是我用来分享的代码 FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init]; content.contentDescription = [[MusicPlayerHelper
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentDescription = [[MusicPlayerHelper playerManager] getTextToShare];
content.contentURL = [NSURL URLWithString:[[MusicPlayerHelper playerManager] getURLToShare]];
content.imageURL=[NSURL URLWithString:[[MusicPlayerHelper playerManager] getImageURLToShare]];
FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init];
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fbauth2://"]]){
dialog.mode = FBSDKShareDialogModeNative;
}
else {
dialog.mode = FBSDKShareDialogModeAutomatic; //or FBSDKShareDialogModeAutomatic
}
dialog.shareContent = content;
dialog.delegate = _delegate;
dialog.fromViewController = _delegate;
[dialog show];
你在iOS 10或iOS 9上测试过这个吗?当我将我的设备升级到iOS 10时,我看到了类似的行为。你在iOS 10或iOS 9上测试过吗?当我将我的设备升级到iOS 10时,我看到了类似的行为。