Google+分享iOS照片并检查它是否为“公开”帖子(Google+ Share photo by iOS and Check if it was a “public” post)
我有一个分享照片和预填充文本的应用程序
[[GPPShare sharedInstance] nativeShareDialog]是否可以检查用户如何共享图像? 作为公众或朋友或其他。 我发现的唯一返回方法是:
- (void)finishedSharingWithError:(NSError *)error { NSString *text; if (!error) { text = @"Success"; } else if (error.code == kGPPErrorShareboxCanceled) { text = @"Canceled"; } else { text = [NSString stringWithFormat:@"Error (%@)", [error localizedDescription]]; } NSLog(@"Status: %@", text); }但它只返回成功/不成功和相对错误。 可以检查用户选择的共享权限吗?
I have an app that share photo and prefilled text with
[[GPPShare sharedInstance] nativeShareDialog]Is it possible to check how the user had shared the image? As public or friends or something else. The only return method that I have found is this :
- (void)finishedSharingWithError:(NSError *)error { NSString *text; if (!error) { text = @"Success"; } else if (error.code == kGPPErrorShareboxCanceled) { text = @"Canceled"; } else { text = [NSString stringWithFormat:@"Error (%@)", [error localizedDescription]]; } NSLog(@"Status: %@", text); }But it return only success/not success and relative error. It is possible to check the sharing permission that the user had select?
最满意答案
您最好的选择是在创建帖子后不久为用户调用activities.list ,如果发现帖子是公开的。
Your best option is going to be calling activities.list for the user shortly after the post is created and if the post is found it was public.
更多推荐
发布评论