You need to sign in to do that
Don't have an account?
Matt Hime
Chatter API - Updating a users photo
Hi,
I wrote a piece of code to update the chatter photo for a user using the chatter API. It's been working successfully, however, now it has stopped working.
The code looks like this:
I wrote a piece of code to update the chatter photo for a user using the chatter API. It's been working successfully, however, now it has stopped working.
The code looks like this:
Document content = [select Body from Document where id ='***known id***']; ConnectApi.Photo photo = ConnectApi.ChatterUsers.setPhoto(null, UserInfo.getUserId(), new ConnectApi.BinaryInput(content.Body,'image/jpg','userImage.jpg'));I don't think that there's anything wrong with the code. I have noticed that I cannot even update the picture from my chatter page anymore. So, is there some sort of limit that I have broken?
All Answers
I see nothing wrong with the code that you are using.What error are you getting when you are trying to do this.
But however, please try the link below
http://www.salesforce.com/us/developer/docs/chatterapi/
Best Regards
Naga kiran