hybridauth / hybridauth

Open source social sign on PHP Library. HybridAuth goal is to act as an abstract api between your application and various social apis and identities providers such as Facebook, Twitter and Google.
https://hybridauth.github.io/
Other
3.35k stars 1.13k forks source link

[Google] Migrate to new People API #961

Open ApacheEx opened 6 years ago

ApacheEx commented 6 years ago

needs to change getUserContacts to use new https://developers.google.com/people/

sanjib-dev commented 6 years ago

if you are using 2.x, goto Google.php under provider, change the scopes to below line: public $scope = "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile";

hope this helps :)

PowerKiKi commented 5 years ago

Shouldn't we close this following #1024 ? Or is it something different?

ApacheEx commented 5 years ago

it seems not related. We already removed google plus contacts, and now we use old api to get google contacts, so this task makes sense.

waqleh commented 5 years ago

if you are using 2.x, goto Google.php under provider, change the scopes to below line: public $scope = "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/userinfo.profile";

hope this helps :)

you can set the scope in the config file, no need to edit Google.php