function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
dev9dev9 

Chatter profile image

Can chatter profile image be updated using the API?

r1985r1985

Hi,

 

You can query on the chatter profile image but u cannot update using API, since the field is not writeable using code.

 

System.debug([select FullPhotoUrl from User limit 1]);

 

Thanks,

MVP

ChrisOctagonChrisOctagon

Using the new Chatter REST API you can update a user profile image. More info here: http://wiki.developerforce.com/page/Chatter_API. Scroll down to "user photos" in the doc here: http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_resources_users.htm

Avi646Avi646

i guess the current logged in user can only change his profile picture.

ChrisOctagonChrisOctagon

Avl646: Yes