Reputation: 2176
I use UIActivityViewController for sharing content, code is pretty simple:
UIActivityViewController* activityViewController = [[UIActivityViewController alloc] initWithActivityItems:[feedCell activityItems]
applicationActivities:nil];
[self presentViewController:activityViewController animated:YES completion:NULL];
where activityItems are:
- (NSArray *)activityItems {
return @[self.titleLabel.text, self.titleImageView.image, [NSURL URLWithString:@"https://fb.m..234"]];
}
Can't figure out, is it possible to make an app link created from Facebook App Links Hosting API has an thumb + install/open button?
I created one and it works great, but it has only a title and fb.me..:
My goal is to make it look like this:
Thanks for any help.
Upvotes: 0
Views: 123
Reputation: 96373
No, that does not seem to be possible. https://developers.facebook.com/docs/graph-api/reference/v2.7/app-link-host lists the fields an app link host object has – and there is no thumbnail.
If you want a thumbnail, then you have to add the App Links meta data to an existing URL: https://developers.facebook.com/docs/applinks/add-to-content With that, you can use all the other OG meta tags as well.
Upvotes: 2