Answer the question
In order to leave comments, you need to log in
What about uploading an avatar from social networks?
During the initial authorization of the user through the social. network, I get a link to his profile picture and save it in the database for later use of the picture using this link.
But, if the user changes the avatar in the social. network, then on my site he will have an old avatar.
Question:
Should I update the link to the avatar with each authorization or not?
How are you doing?
Answer the question
In order to leave comments, you need to log in
It’s not worth it, just provide in the user’s personal account the possibility of changing the avatar.
The last segment of the path (aka the name of the photo) can be saved in the database, and then checked - if they do not match, then load a new one
Keep only for yourself.
Sometimes different ways for different countries.
Sometimes different paths for http s and http.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question