我有一个 google+ api 应用程序,可以登录 google+ 并共享,但在发布或取消帖子后它不会返回到应用程序,我尝试对其进行调试,但它没有进入 - (void)finishedSharing:( BOOL) 共享 {
- (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];
}
最佳答案
这是 Google plus SDK 中的问题。这是打开问题的链接: https://code.google.com/p/google-plus-platform/issues/detail?id=794&can=8&colspec=ID%20Type%20Status%20Component%20Owner%20Summary%20Stars
关于iphone - 用户选择共享或取消后,iOS Google+ 应用程序不会返回应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17116787/