Add a Friend Button and list friends

I am trying to make a contacts list for each user of my app. This is part of a larger messaging system, so I followed this tutorial.

However, I can’t display a list of a user’s contacts. I’ve set the repeating group to pull from the Contacts of the Current User, but I don’t know what expression to use to list the actual contacts. (The structure of my data type is below.)

I also would like to create an “Add Friend” button on a user’s profile page so the Current User can add them to their Contacts. Can’t seem to do that, either. I’ve looked everywhere, but have been struggling for hours. Any help would be appreciated!

image

image

image

Have you double checked your privacy rules? :slight_smile:

Thanks! I changed that, but I’m still having trouble listing contacts or adding a contact. My expression is always red. I’m new to Bubble and the expressions sometimes trip me up.

With your current setup: You’ll need to use a slug on each user which will then be used in your urls like www.mydomain.com/profile/slugvalue

Could you send screenshots of your expressions? Will be much easier to help that way!