In some cases, you want to offer the option to update the users profile picture or avatar based on game art or say a make your own avatar app.


Before, You may use this API, your application must first have the avatar permission enabled and the app status must be approved. Visit the application page to enable the permission.

Example Useage

ID.Profile.updateAvatar(File, callback);

The first argument is a File object. It can be a local file from a form input or a file read using the FileReader API. The FileReader API, allows files from the DataTransfer API and the HTMLCanvasElement API. The second argument will call a callback function when the operation is complete.