3

我有一个 google+ api 应用程序将日志记录到 google+ 并分享得很好,但是在发布或取消帖子后它不​​会返回到应用程序我尝试调试它并且它没有进入 - (void)finishedSharing:(BOOL)shared {

    - (IBAction)googlePlusPost:(id)sender {
    SLServiceTitle = @"Google+";


    /*[[[[share shareDialog] setURLToShare:[NSURL URLWithString:urlToShare]]
    setPrefillText:textToShare] open];*/

   [GPPShare sharedInstance].delegate = self;
   id<GPPShareBuilder> shareBuilder = [[GPPShare sharedInstance] shareDialog];

   // This line will manually fill out the title, description, and thumbnail of the
   // item you're sharing.
   // thumbnailURL is url of image you want to display.
   [shareBuilder setTitle:@"Title of your post"
           description:@"Description of your post"
          thumbnailURL:[NSURL URLWithString:urlToShare]];

   /* This line passes the deepLinkID to our application
   if somebody opens the link on a supported mobile device */
   [shareBuilder setContentDeepLinkID:@"share"];

   // set the text of post. user can edit this before sharing.
   [shareBuilder setPrefillText:textToShare];

   [shareBuilder open];
   }
4

3 回答 3

1

这是 Google plus SDK 中的一个问题。这是打开问题的链接: https ://code.google.com/p/google-plus-platform/issues/detail?id=794&can=8&colspec=ID%20Type%20Status%20Component%20Owner%20Summary% 20颗星

于 2014-09-30T10:47:17.610 回答
0

您需要先登录 g+,然后使用原生应用程序对话框在 g+ 上分享视频。

id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];

这将在您自己的应用程序中打开本机窗口。

参考:https ://developers.google.com/+/mobile/ios/share/deep-link

于 2014-11-13T10:05:57.167 回答
0

我需要查看您的代码。请发布 google+ 相关代码。你可以参考我对这个问题的回答。

于 2013-06-15T16:24:09.867 回答