我正在尝试将GooglePlus集成到我的iOS应用程序中。这个应用程序发送了一个简单的信息。关于接受者的设置,我有几个问题。下面是我使用的代码类型:
[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).");
}当一行评论“问题点!”现在,我可以设置一个(或几个)个人作为信息的接收者。当它没有出现时,收件人的集合默认为“朋友”。
以下是我的两个问题:
发布于 2014-04-15 02:36:01
似乎你不能和一个特定的圈子分享。
您可以使用此方法获取用户圈子中所有可见的人员,使用此方法
queryForPeopleListWithUserId:collection:
现概述如下:
https://developers.google.com/+/mobile/ios/people
对标题中参数的解释:
// List all of the people in the specified collection.
// Required:
// userId: Get the collection of people for the person identified. Use "me" to
// indicate the authenticated user.
// collection: The collection of people to list.
// kGTLPlusCollectionVisible: The list of people who this user has added to
// one or more circles, limited to the circles visible to the requesting
// application.另外还有一个问题涉及到这个问题:
How to Fetch Google Plus circles in IOS Sdk
不幸的是,在我看来,你似乎看不出谁在哪个圈子里。
https://stackoverflow.com/questions/23073621
复制相似问题