I'm using Google API for my iOS app, and I have this code
[shareBuilder setURLToShare:[NSURL URLWithString:@"http://ift.tt/1gDFMt0"]];
that works well and embeds the url to my post on Google+ as expected.
But another method with deep-link set doesn't:
[shareBuilder setTitle:@"Uncollectible"
description:@"Stay cool. Stay debtless."
thumbnailURL:[NSURL URLWithString:@"http://ift.tt/1OKh1Wx"]];
My code is same as google example
id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
// This line will manually fill out the title, description, and thumbnail of the
// item you're sharing.
[shareBuilder setTitle:@"New 5k record!"
description:@"I just ran 5000 meters in 26:16! That's a new record!"
thumbnailURL:[NSURL URLWithString:@"http://ift.tt/1gDFORo"]];
[shareBuilder setContentDeepLinkID:@"/races/sf/1234567"];
[shareBuilder open];
Please advise. Thanks!
Aucun commentaire:
Enregistrer un commentaire