Get user info via Google API

Add this to the scope – https://www.googleapis.com/auth/userinfo.profile

And after authorization is done, get the information from – https://www.googleapis.com/oauth2/v1/userinfo?alt=json

It has loads of stuff – including name, public profile url, gender, photo etc.

Leave a Comment