I stuck on the Facebook sharing..
All I want is to post an image from my iOS app, with text and applink, that can redirect users to installed app or App Store.
App link works fine, I described some metatags like this:
<meta property="al:ios:url" content="cubeDev://" />
<meta property="al:ios:app_store_id" content="1054030..." />
<meta property="al:ios:app_name" content="My app name" />
<meta property="al:web:should_fallback" content="false" />
<meta property="og:image:width" content="50" />
<meta property="og:image:height" content="50" />
<meta property="og:image" content="https://spb.hh.ru/employer-logo/1625583.png" />
<meta property="og:type" content="website" />
<meta property="og:title" contetn="title" />
<meta property="og:description" content="App description.." />
<meta property="fb:app_id" content="31667067867..." />
Share code also pretty simple:
FBSDKShareLinkContent *content = [[FBSDKShareLinkContent alloc] init];
content.contentURL = [NSURL URLWithString:@"http://176.31.132.151:8000/"];
content.imageURL = [feedCell imageURL];
content.quote = [feedCell text];
FBSDKShareDialog *shareDialog = [[FBSDKShareDialog alloc] init];
shareDialog.mode = FBSDKShareDialogModeNative;
if(!shareDialog.canShow) {
shareDialog.mode = FBSDKShareDialogModeFeedBrowser;
}
shareDialog.fromViewController = self;
shareDialog.shareContent = content;
shareDialog.delegate = self;
[shareDialog show];
Where http://176.31.132.151:8000/ is my app link.
It seems like when you describe an image in meta tags for app link, image url property won't work..
So, my goal is to post an image from app with text, and app link below with my app icon and description..
Will be grateful for any help.