这FBSDKShareDialog崩溃是我的问题:我在休耕https://developers.facebook.com/docs/ios/getting-startedFSSDKShareKit - 在初始化的iOS
我已经下载从官方网站的最新SDK的所有步骤,我已经配置了Facebook应用程序设置和正确设置plist文件。
我需要复制到文件夹的框架类似的框架描述: http://i.stack.imgur.com/kYXdq.png
我把这个在我的appDelegate:
// AppDelegate.m
#import <FBSDKCoreKit/FBSDKCoreKit.h>
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
return [[FBSDKApplicationDelegate sharedInstance] application:application
didFinishLaunchingWithOptions:launchOptions];
}
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {
return [[FBSDKApplicationDelegate sharedInstance] application:application
openURL:url
sourceApplication:sourceApplication
annotation:annotation
];
}
imporing的FBSDKCore和FBSDKShare在由触发的方法后按钮我有下面的代码:
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString:@"my URL"];
FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init];
dialog.fromViewController = self;
dialog.shareContent = content;
dialog.mode = FBSDKShareDialogModeShareSheet;
[dialog show];
我的应用程序在FBSDKShareDialog *对话框中崩溃= [[FBS DKShareDialog alloc] init]与一个SIGABRT。
你们有什么建议吗?
非常感谢您
编辑:
我试图使用FBSDKShareButton和我有同样的问题,轰然上的init ...谢谢!
谢谢阿维纳什·贾达夫你的答案,但FBAppCall是老版本的SDK,而不是为我工作 – MajinDageta