W
W
W1zer2017-04-23 23:00:44
In contact with
W1zer, 2017-04-23 23:00:44

How to confirm the user's change of his photo vk api?

I call the method
photos.saveOwnerPhoto
. At the output, I get an array - photo_hash, photo_src, photo_src_big, photo_src_small. In general, everything is as above. Shows that the picture has loaded and gives links to them. But the avatar doesn't change.
I go to the documentation of the method, I find the line:

After successful execution, it returns an object containing the photo_hash and photo_src fields (when working via VK.api, the method will return the photo_src, photo_src_big, photo_src_small fields). The photo_hash parameter is required for the user to confirm that their photo has been changed via the saveProfilePhoto Javascript API method call. The photo_src field contains the path to the uploaded photo.

What is saveProfilePhoto ? It's not in the documentation. I suspect this is purely a method for flash and iframe applications that bring up a confirmation dialog. Is it possible to somehow confirm the avatar without flashes and third-party applications and dialog boxes, but purely on the php server?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question