我正在尝试在多个 friend 墙上分享一个带有消息的 url,在当前方法中我可以在分享时选择 friend ,我想知道是否有任何方法可以预定义分享应该发布到的 friend 列表。根据谷歌文档,这是我当前的实现
- (IBAction) didTapShare: (id)sender
{
{
[GPPShare sharedInstance].delegate = self;
id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];
[shareBuilder setURLToShare:[NSURL URLWithString:@"http://dummy.com"]];
[shareBuilder setTitle:@"Some title" description:@"Some description" thumbnailURL:[NSURL URLWithString:@"http://dummy.com/image"]];
[shareBuilder setContentDeepLinkID:@"share"];
[shareBuilder open];
}
}
- (void)finishedSharing:(BOOL)shared
{
NSString *text = shared ? @"Success" : @"Canceled";
NSLog(@"%@",text);
}
有什么建议吗?
最佳答案
如果您使用 Google+ 登录,则可以使用类似的方法将人员添加到共享列表中
[shareBuilder setPreselectedPeopleIDs:@[@"106189723444098348646",@"109813896768294978296"]];
行前
[shareBuilder open];
更多详情请访问https://developers.google.com/+/mobile/ios/share/prefill#prefill_the_recipients_of_a_post
关于ios - 如何在 iOS 的多个 friend 墙上分享 google Plus 中的消息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20266901/