How to Find Mutual Follows and Followers
On X (Twitter) profile page, there is a “Followed by A, B, C, and 10 others you follow”. This guide demonstrates how to use the Neynar SDK to make the same thing but for Farcaster. Check out this Getting started guide to learn how to set up your environment and get an API key. First, initialize the client:fid
property to find the intersection.
you’d probably want to cache the results of
fetchAllFollowing
and fetchAllFollowers
so you don’t have to make the same API calls again.