A
A
Alexander2015-02-03 18:13:17
PHP
Alexander, 2015-02-03 18:13:17

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

5 answer(s)
A
Alexander Taratin, 2015-02-03
@Taraflex

It’s not worth it, just provide in the user’s personal account the possibility of changing the avatar.

I
IceJOKER, 2015-02-03
@IceJOKER

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

S
Sergey Semenko, 2015-02-03
@abler98

And why not save the avtarki on your server?

A
Alexey Lebedev, 2015-02-03
@swanrnd

Keep only for yourself.
Sometimes different ways for different countries.
Sometimes different paths for http s and http.

S
Shiyankin, 2016-06-21
@shiyankin

Can you share the php script for uploading avatars? Faced exactly this problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question