Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSDictionary *param = @{@"sourceId" : sourceId,
- @"source" : sourceType,
- @"referral" : [[SecurePersistentStore sharedInstance] referralKey],
- @"$og_image_url" : imageUrl,
- @"$og_description" : caption,
- @"$og_title" : @"PocketCause"};
- [[Branch getInstance] getShortURLWithParams:param
- andChannel:@"mobile_app"
- andFeature:@"share_profile"
- andCallback:^(NSString *url, NSError *error) {
- [self hideLoadingView];
- if (!error) {
- NSURL *shareUrl = [NSURL URLWithString:url];
- PostURLShareItem *urlItem = [[PostURLShareItem alloc] initWithURL:shareUrl];
- PostCaptionShareItem *captionItem = [[PostCaptionShareItem alloc] initWithCaption:caption andURL:shareUrl.absoluteString];
- [self presentActivityWithURLShareItem:urlItem
- captionShareItem:captionItem
- completitionHandelr:handler];
- }
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement