Reputation: 17595
After I get successful authentication, I've already got user information by below method.
// 1. Create a |GTLQuery| object to get people profile who are authenticated
GTLQueryPlus *query = [GTLQueryPlus queryForPeopleGetWithUserId:@"me"];
// 2. Execute the query.
[[[GPPSignIn sharedInstance] plusService] executeQuery:query completionHandler:^(GTLServiceTicket *ticket,GTLPlusPerson *gpUser,NSError *error) {
// here I've retrieved all info about users
NSLog(@"GP user first name : %@",gpUser.name.givenName);
NSLog(@"GP user last name : %@",gpUser.name.familyName);
//But don't know how extract phone number.
}];
This google doc shows how to retrieve info via google api. But couldn't see how to extract phone number if user make it visible as public? Is it possible with google plus api?
Upvotes: 13
Views: 4570
Reputation: 3758
Google does not offer access to this data using their G+ API, even though the user marked the information as "public".
See this other thread from 2012 where it's clearly stated that phone numbers are not available through G+ API.
Upvotes: 14