iphone - 用户选择共享或取消后,iOS Google+ 应用程序不会返回应用程序

标签 iphone ios6 google-plus google-bigquery

我有一个 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];
   }

最佳答案

关于iphone - 用户选择共享或取消后,iOS Google+ 应用程序不会返回应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17116787/

相关文章:

iphone - ImageView限制宽度但不限制高度

ios - 用户在苹果应用商店找不到我们的应用

ios - UIActivityViewController 崩溃,NSCFConstantString _beforeActivity 无法识别的选择器发送到实例

iphone - UILocalNotification 在我启动它时使我的应用程序崩溃

android - 如何将白色设置为 google+ 登录按钮?

iphone - 如何在移动后更改表格 View 单元格的背景颜色?

ios - 如何在UIPageViewController最后一页向右滑动时弹出消息?

ios - 检查从另一个函数单击了哪个 UIButton

google-plus - "Anti-XSS protection"通过在 ajax 响应之前添加 )]}'

c# - Google+ 登录 API 和电子邮件