hello everyone I am trying to load google profile picture in my site and other ones
I have done
var profile = googleUser.getBasicProfile();
profile.getImageUrl()
when I sign in with google and save the image url to a database but when I try to put it into the scr of an img tag like so
var img = document.createElement("img");
img.src = image;
img.alt = "image";
img.style.float = "left";
divn.appendChild(img);
I get 403 forbidden error sometimes, but sometimes it works here is a sample link that I'm using the one that is stored in the database just altered a bit
https://lh4.googleusercontent.com/-OmV9386WzGk/AAAAFFFFAAI/AAAAAAAACpc/BEtVNh85tnk/s96-c/photo.jpg
so I'm just wondering if I'm doing it right obtaining the profile image, and its for other users also on the same page