Saves a newly uploaded profile picture.
If the optional crop_* and square_* parameters are not specified (all eight need to be specified for them to have an effect):
- The entire photo will be used for the rectangular version
- The square will be taken from the top of the rectangular version if it’s vertical, or from its center if it’s horizontal
This method requires the following permissions: photos.
Parameters
If updating a group’s profile picture, identifier of that group.
A parameter returned by the upload endpoint.
A parameter returned by the upload endpoint.
X coordinate of the top left corner of the rectangular area displayed on the desktop website.
Y coordinate of the top left corner of the rectangular area.
X coordinate of the bottom right corner of the rectangular area.
Y coordinate of the bottom right corner of the rectangular area.
X coordinate of the top left corner of the square area within the rectangular area (crop_*), used in most places where profile pictures are displayed.
Y coordinate of the top left corner of the square area.
X coordinate of the bottom right corner of the square area.
Y coordinate of the bottom right corner of the square area.
Result
Returns a photo object.