Members Followers: Sample Use Cases and Flows

This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.

You could help Wix users add a widget that displays members with the most followers.

  1. Retrieve all members of a site by calling List Members.
  2. For each member, retrieve their followers with List Member Followers, count them, and sort the results by the highest number of followers.

Create a “People you may know” widget based on 2nd-degree connections

You could help Wix users add a widget showing connections of connections, and how many connections the specified member has in common with them.

  1. Get the specified member's connections with List Member Followers and List Member Following.

  2. For each direct connection, get their connections in both directions, using the same methods as in the previous step.

  3. Use the list of indirect connections from the previous step, query any existing relationships to the specified member with the Query Member Connections.

  4. Sort the resulting list of potential connections into the following sets:

    • The specified member already follows the 2nd-degree connection. Remove them from the suggestion list.

    • The 2nd-degree connection follows the specified member. Add to a "follows you" sub-list.

    • There is not yet any direct connection to the 2nd-degree connection. These are the members to use for the suggestion list.

  5. For each remaining suggestion, use List Members to display details for the specified member, and provide "Follow this member" links with Follow Member endpoint.

Did this help?