I am trying to integrate GooglePlus inside an iOS app of mine. The app sends a simple message. I have a few questions about the setting of the recipient(s). Here is the kind of code I am using:
[GPPShare sharedInstance].delegate = self;
id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
[shareBuilder setPrefillText:@"Hello world! How is everything?"];
[shareBuilder setPreselectedPeopleIDs:@"112233445566778899000"]; // Question point!!
if (![shareBuilder open]) {
NSLog(@"Status: Error (shareBuilder cannot open).");
}
When the line with the comment "Question point!!" is present, I can set one(or a few) individual(s) as recipient(s) of the message. When it is not present the set of recipients defaults to "Friends".
Here are my two questions:
- Is it possible to set one of my circles (or a community) as recipient? Not only "Friends".
- When using the "setPreselectedPeopleIDs:" method, one needs the ID of the recipient. How do we find this ID? There are documents and videos on the net showing how to find one's own ID, but since people usually send messages to other peole rather than to themselves, it would also be useful to know how to get other's IDs.