Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change google plus profile picture using google api Javascript SDK

I'm trying to build a Google+ App which uploads profile picture Using API JavaScript SDK. Is there any way to upload Google+ profile picture?

like image 618
Kamal Kumar Avatar asked Dec 12 '25 21:12

Kamal Kumar


1 Answers

There is no Google+ api that is available to developers. If you are working within your own domain you can do this with the Google Directory Api.

var newPhoto = AdminDirectory.newUserPhoto().photoData = (Utilities.base64Encode(photoBlob));

AdminDirectory.Users.Photos.update(newPhoto, "[email protected]");
like image 71
Spencer Easton Avatar answered Dec 14 '25 18:12

Spencer Easton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!