Skip to content

setProfilePhoto

Sahri Riza Umami edited this page Mar 15, 2017 · 4 revisions

Uploads new profile photo for logged in user.

setProfilePhoto(photo_path)

Photo will not change until change will be synchronized with the server.
Photo will not be changed if application is killed before it can send request to the server.
If something changes, updateUser will be sent.

Option Description
photo_path Path to new profile photo.

Example

  • Change currently logged in user photo from local storage.

    setProfilePhoto('/tmp/foto.jpg')

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally