ConnectApi.PhotoInput Class

Use to specify how crop a photo. Use to specify an existing file (a file that has already been uploaded).

Property Type Description Available version
cropSize Integer The length, in pixels, of any edge of the crop square. 29.0
cropX Integer The position X, in pixels, from the left edge of the image to the start of the crop square. Top left is position (0,0). 29.0
cropY Integer The position Y, in pixels, from the top edge of the image to the start of the crop square. Top left is position (0,0). 29.0
fileId String 18 character ID of an existing file. The key prefix must be 069 and the file size must be less than 2 GB.
Note

Note

Images uploaded on the Group page and on the User page don’t have file IDs and therefore can’t be used.

25.0
versionNumber Integer Version number of the existing content. If not provided, the latest version is used. 25.0