πŸŽ‰Social Follows

Learn how to recommend users based on Social Follows

Get Recommendation Follows For User(s) Based on Followers

Fetching

You can fetch follow recommendations for user(s) by simply showing them all the accounts that followed the given user(s):

Try Demo

Code

query MyQuery {
  Farcaster: SocialFollowers(
    input: {filter: {identity: {_in: ["vitalik.eth"]}, dappName: {_eq: farcaster}}, blockchain: ALL, limit: 200}
  ) {
    Follower {
      followerAddress {
        socials(input: {filter: {dappName: {_eq: farcaster}}}) {
          dappName
          profileName
          userId
          profileImage
        }
      }
    }
    pageInfo {
      nextCursor
      prevCursor
      hasNextPage
      hasPrevPage
    }
  }
    Lens: SocialFollowers(
    input: {filter: {identity: {_in: ["vitalik.eth"]}, dappName: {_eq: lens}}, blockchain: ALL, limit: 200}
  ) {
    Follower {
      followerAddress {
        socials(input: {filter: {dappName: {_eq: lens}}}) {
          dappName
          profileName
          userId
          profileImage
          profileImageContentValue{
            image{
              medium
            }
          }
        }
      }
    }
    pageInfo {
      nextCursor
      prevCursor
      hasNextPage
      hasPrevPage
    }
  }
}

With the response, you can get all followerAddress.socials and compile them into an array of accounts that you can recommend for the given user(s) to follow.

Developer Support

If you have any questions or need help regarding building a recommendation engine, please join our Airstack's Telegram group.

More Resources

Last updated

Was this helpful?