[Wishlist] Add Friends Functionality

Post author
Josh Dean

The ability for users to 'Add Friends'. This would be extremely valuable in building B2C web apps.

One possible solution in the meantime could be to add a custom field for each user called 'Friends'.  Then, using a Webflow form within the web app, the user can type in/search that friend's name or email.

When a user submits the form, the code:

1. Fetches the current user’s data (including their friends list) from Memberstack.

2. Checks if the friend already exists in that list.

3. If the friend isn’t on the list, it verifies the friend’s existence by looking them up in Memberstack by email (or Memberstack ID).

4. If the friend is valid, it appends the friend’s email (or ID) to the current user’s friends list and updates the field in Memberstack (using comma separated values for multiple friends).

This is a quick solution that could enable this type of functionality, but there needs to be a way for the friend receiving the request to either accept or decline.

Comments

1 comment

  • Comment author
    Josh Lopez

    Hey Josh Dean

    Thank you for adding this post! This idea is similar to our new team plans where a member can purchase and have seats to share with other members. I don't think it's an exact 1 to 1 but it may be fun to dive in and test if you are feeling adventurous. Check out this article here for more info.

    0

Please sign in to leave a comment.