Google plus iOS API预填充共享数据已被弃用,有什么替代方案

Google plus iOS API预填充共享数据已被弃用,有什么替代方案,ios,google-plus,Ios,Google Plus,我必须通过iOS应用程序在Google plus中共享文本、url和图像。Google plus登录已被弃用,并且只提供与本机iOS G+共享相同的文本+url。但我想分享iOS应用程序中的图像、url等。是否有其他方法可以在Google plus now中通过文本共享媒体。支持两个url参数:url用于目标url,而hl用于语言代码 - (void)showGooglePlusShare:(NSURL*)shareURL { // Construct the Google+ shar

我必须通过iOS应用程序在Google plus中共享文本、url和图像。Google plus登录已被弃用,并且只提供与本机iOS G+共享相同的文本+url。但我想分享iOS应用程序中的图像、url等。是否有其他方法可以在Google plus now中通过文本共享媒体。

支持两个url参数:
url
用于目标url,而
hl
用于语言代码

- (void)showGooglePlusShare:(NSURL*)shareURL {

    // Construct the Google+ share URL
    NSURLComponents* urlComponents = [[NSURLComponents alloc]
                             initWithString:@"https://plus.google.com/share"];
    urlComponents.queryItems = @[[[NSURLQueryItem alloc]
                                          initWithName:@"url"
                                          value:[shareURL absoluteString]]];
    NSURL* url = [urlComponents URL];

    if ([SFSafariViewController class]) {
       // Open the URL in SFSafariViewController (iOS 9+)
       SFSafariViewController* controller = [[SFSafariViewController alloc]
                                                                 initWithURL:url];
       controller.delegate = self;
       [self presentViewController:controller animated:YES completion:nil];
    } else {
      // Open the URL in the device's browser
     [[UIApplication sharedApplication] openURL:url];
    }
}

@Kurt Van den Branden你好,我尝试过上面的代码,但它直接将我重定向到google plus个人资料页面,我尝试在桌面浏览器中粘贴相同的url,它显示了我的帖子窗口。你们能帮我解决这个问题吗。