[Social Network] Function for adding Friends

Hello everyone (or anyone),

I’m trying to build a social Network and i have struggling with the functionnality Add Friends.
I would like to know, if someone have already implement this function?

Also i’m using this framework for my app:

Thanks for your help.

Best regards,

Hi @cornerdigital6,

Welcome :wave:!

Typically, to build this type of feature, all you need to do is add a field to your User data type:

Label: “Friends”
Type: User
List: yes

When you want to add (or remove) a friend from a User’s list, you’ll use a workflow to make that change. Check out this tutorial to learn how to modify list fields: https://www.youtube.com/watch?v=4BB4mZp_C3Q

When you’ve done that, you can display a user’s list of Friends in a repeating group, where the repeating group’s data type = User, and the data source = current user’s Friends.

That should point you in the right direction!


Cheers,
Gaby

Coaching No Code Apps
Join our Facebook group for insider access to no-code development
Get professional development services
Enroll in expert-led courses and products

2 Likes

Don’t forget that when you add User B to the list of Friend of User A, You also should add User A to the list of Friends of User B. They are both friend from each other :slight_smile:

1 Like

Hello @romanmg,

Thanks for your help. It was helpfull.

Regards,

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.