我使用FacebookSDKs-iOS-4.28.0和developer facebook page建议这几行代码来分享;
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString:@"www.lcwaikiki.com"];
[FBSDKShareDialog showFromViewController:self withContent:content delegate:self];但是,当代码到达[FBSDKShareDialog showFromViewController:self withContent:content delegate:self];代码行时,应用程序会使用SIGABRT崩溃
有没有人有任何信息可以解决上面提到的撞车事件?
谢谢大家。
发布于 2017-11-15 19:39:52
我找到了关于上面提到的崩溃问题的解决方案。
如果您的iOS应用程序基于SDK<=iOS9,则必须在.plist文件中的LSApplicationQueriesSchemes下添加"fbauth2“、"fbapi”等。
您可以深入了解Facebook SDK iOS9 guide
https://stackoverflow.com/questions/47303396
复制相似问题