https://developers.google.com/accounts/docs/OAuth2
According to Google's OAuth2 docs, this can be done by setting a few areas, but be warned that this is not a happy experience.
When executing the query, set the scope parameter for several scopes, each of which is separated by one space.
Example: "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email https://www.google.com/m8/channels"
Now you can find the list of areas: https://developers.google.com/gdata/faq
Unfortunately, access to the API is not additive, that is, if you request an access token for the Google Contacts API, and then when the same application requests an access token for the Google Profile API, you will receive two access tokens, and not one of them cannot be used to access another API. Facebook at least has the integrity to give you one access token, which provides access to all the permissions granted so far.
Because of this, you have to keep track of multiple access tokens (a terrible nightmare if they expire very quickly), or ask all your permissions to the forefront, which is a user's disaster.
The fragmented and fragmented Google APIs are currently set to crash if you want to perform complex, multi-faceted integration.
source share