The avatar attribute does not work for me

  • 12 October 2022
  • 6 replies

I am using react native and I am using the following code:



  email: ?? '',


  name: (userInfo && userInfo.first_name) ?? '',

  phone: userInfo.phones[0].number,

  avatar: '',

  custom_attributes: {

     date_of_birth: userInfo.dob ?? '',

     user_connected_from: App'




EVERYTHING, absolutely everything works, except the avatar attribute, could you please tell me how to make that image be my client's profile picture here in the red circle? Thank you.

where it should go profile image


Best answer by Zak 21 October 2022, 07:11

View original

6 replies

Badge +1

Around the URL you have single quotes; can you try change it to double quotes and see if that makes any difference?


Still not working, does it work for you?

Userlevel 3
Badge +2

Hi @zak p​ , just wondering if you can further advise the user on this matter. 🙌

Badge +1

Hey! Sorry for the delay, missed this one.


So I was testing this and thought I ran into a big issue with a bug where updating would create a new account instead of updating the existing, but realized I was sending a POST request instead of PUT haha.


I'm not familiar with coding in react unfortunately, however I've tested sending an API request to update a profile and was able to successfully update the profile image. I even used the one you provided just to test, so that works fine.


So API wise it appears to be okay, but perhaps this is an issue unique to using it via react? Could you try and perform the same command via a regular API request instead to see if you have the same issue?

Thank you very much for your response.


I have been to support and they told me the same as you said and it worked fine with the api request. But I need it with react native.


Apart from that because they ask for an external_id to do the avatar update in the api, but I don't have that with Intercom in react native, which means building another additional call from the users....


The right thing would be that obviously it would work from the library they have created for react native, that's what it was created for. 


Here is the documentation about react native>

I can’t seem to find the correct attribute key to update this information through Zapier