3

根据Google+ iOS SDK 文档,您可以通过以下方式分享到 Google+:

- (IBAction) didTapShare: (id)sender {
  id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];

  // 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:@"https://www.example.com/images/5krun.png"];

  [shareBuilder open];
}

然而,description“我刚刚在26:16跑了5000米!这是一个新纪录!” 分享后不会显示在您的个人资料页面上,只有titleand thumbnailURLdo。描述显示在将要共享的内容的预览中,但是当您共享它时,它就不存在了。

此外,文档没有这样说,但你必须打电话

[shareBuilder setContentDeepLinkID:@"some id here"];

否则 SDK 会打印出来:

-[GPPShareBuilderImpl getURL] Content deep-link ID is required with title and description.

文档没有提及这一事实让我认为它已经过时了,我需要做一些其他事情来共享描述。有没有人把描述显示出来?

4

0 回答 0