Closed giovannilima262 closed 2 years ago
- (void)facebookShare:(NSString*)imagePath { // NSURL* path = [[NSURL alloc] initWithString:call.arguments[@"path"]]; FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init]; photo.image = [[UIImage alloc] initWithContentsOfFile:imagePath]; FBSDKSharePhotoContent *content = [[FBSDKSharePhotoContent alloc] init]; content.photos = @[photo]; UIViewController* controller = [UIApplication sharedApplication].delegate.window.rootViewController; [FBSDKShareDialog showFromViewController:controller withContent:content delegate:self]; }
Error: FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init]; 'init' is unavailable
Version: social_share_plugin: ^0.3.1+1
how do your solve it
Error: FBSDKSharePhoto *photo = [[FBSDKSharePhoto alloc] init]; 'init' is unavailable
Version: social_share_plugin: ^0.3.1+1