我遇到了FBSDKShareDialog的问题。有时,一旦Facebook打开,Facebook就会崩溃。当我杀死Facebook应用程序然后处理我的FBSDKShareDialog代码时,这几乎可以重新生成90%。 Facebook开放后工作正常。有什么想法吗?
启动FBSDKShareDialog的代码如下:
FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init];
photo.image = self.shareItem.fullImage;
photo.userGenerated = YES;
photo.caption = self.shareItem.fileDescription;
FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init];
content.photos = @[photo];
dispatch_async(dispatch_get_main_queue(), ^{
[FBSDKShareDialog showFromViewController:self withContent:content delegate:self];
});
Facebook崩溃了:
流程:Facebook [6415] 路径:/private/var/mobile/Containers/Bundle/Application/FACCA335-ACE0-40BE-94B7-92BF08B0CDC3/Facebook.app/Facebook 标识符:com.facebook.Facebook 例外类型:EXC_CRASH(SIGABRT) 例外代码:0x0000000000000000,0x0000000000000000 由线程触发:0
最后一次异常回溯: 0 CoreFoundation 0x1858a82d8 __exceptionPreprocess + 132 1 libobjc.A.dylib 0x1970cc0e4 objc_exception_throw + 60 2 CoreFoundation 0x1858af3a4 - [NSObject(NSObject)doesNotRecognizeSelector:] + 220