Google+ 分享 iOS 的照片并检查它是否是 "public" post
Google+ Share photo by iOS and Check if it was a "public" post
我有一个可以与
分享照片和预填文本的应用
[[GPPShare sharedInstance] nativeShareDialog]
是否可以查看用户是如何分享图片的?作为 public 或朋友或其他。我发现的唯一 return 方法是:
- (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);
}
但它 return 仅 success/not 成功和相对错误。可以检查用户拥有的共享权限 select?
您最好的选择是在创建 post 后不久为用户调用 activities.list,如果找到 post,则它是 public。
我有一个可以与
分享照片和预填文本的应用[[GPPShare sharedInstance] nativeShareDialog]
是否可以查看用户是如何分享图片的?作为 public 或朋友或其他。我发现的唯一 return 方法是:
- (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);
}
但它 return 仅 success/not 成功和相对错误。可以检查用户拥有的共享权限 select?
您最好的选择是在创建 post 后不久为用户调用 activities.list,如果找到 post,则它是 public。