The Google+ People API will eventually be completely deprecated in 2017 Q1, see deprecation notes below for details:
Android ad: https://developers.google.com/+/mobile/android/api-deprecation
REST endpoint declaration: https://developers.google.com/+/web/people/#retrieve-a-collection-of-people
So, you should consider the proposed alternatives and not create new functions based on G + Circle friends, since no data will be available to new users with the plus.login area .
If you don't want to request permissions at runtime, you can still get signed-in user contacts from the People REST API (note that this is something different from the G + People API). In addition, if you need user profile input other than the first / last / display name, email URL, and image profile (which is already provided by the login API), you should also use the same new People API.
In Android, when you need contact information ( In context, explaining to the user why you are requesting information about your contacts. DO NOT request the contact area in your first input activity )
// Add dependencies (SDKs will be downloaded from mavenCentral) compile 'com.google.api-client:google-api-client:1.22.0' compile 'com.google.api-client:google-api-client-android:1.22.0' compile 'com.google.apis:google-api-services-people:v1-rev4-1.22.0'
Then write the login code.
// Make sure your GoogleSignInOptions request email & contacts scopes as shown below GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) .requestEmail() .requestScopes(new Scope(PeopleScopes.CONTACTS_READONLY))) .build(); // Follow official doc to sign-in. // https://developers.google.com/identity/sign-in/android/sign-in
You can then use the new People Api to retrieve your contact list.
private static HttpTransport HTTP_TRANSPORT = AndroidHttp.newCompatibleTransport(); private static final JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance();