ios - 如何在 iOS 的多个 friend 墙上分享 google Plus 中的消息?

标签 ios iphone google-api google-plus share

我正在尝试在多个 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/

相关文章:

javascript - google.load 上 IE8 中的神秘 'object doesnt support this method' 错误

javascript - 用户注销时 Google signInCallback 调用两次

ios - MKPlacemark 上的参数类型错误

ios - 添加到 UITableView 导航栏下方的 subview Y 值不正确

ios - 如何在每次单击按钮时更改标签文本上的 int 值

iphone - 如何设置UIImage框架

ios - 如何列出玩家所有可用的 GKTurnBasedMatches?

iphone - 使用 GDB 从崩溃中检查 Objective C 类(HandleDelegateSource 错误访问)

iphone - 从个人资料页面(电话号码、电子邮件地址、照片)提取联系人变量到 iOS 电话簿联系人列表

json - 发布 RestSharp Google API 错误