Google+ api doesn't return profile name with login request

后端 未结 5 1319
挽巷
挽巷 2021-01-16 04:48

The google documentation HERE clearly says that

You should not request userinfo.profile or plus.me in combination with [https://www.googleapis.com/au

5条回答
  •  猫巷女王i
    2021-01-16 05:11

    You need userinfo.email to get the email address, but you should be able to request that without also requesting userinfo.profile. plus.login should give you access to the "GET /plus/v1/people/{userid}" call which should return the following fields/objects (at a minimum):

    • name - an object containing the name broken down into fields
    • displayName
    • nickname

提交回复
热议问题