Build "For You" Feeds for your Client, using Neynar and OpenRank
Create your own For You Feed for your client.
Step 1: Getting the FID
const USER_FID = 2025; // This could be static or also based on auth.Step 2: Retrieving Recommended Cast Hashes for the Feed
const openRankBaseURL = 'https://graph.cast.k3l.io/casts/personalized/popular'
const recommendedCastHashesParams = 'agg=sumsquare&weights=L1C10R5Y1&k=1&offset=0&limit=25&graph_limit=100&lite=true'
const recommendedCastHashesUrl = `${openRankBaseURL}/${USER_FID}?${recommendedCastHashesParams}`;
const recommendedCastHashesResponses = await fetch(recommendedCastHashesUrl, {
headers: {
'Content-Type': 'application/json',
},
});
const recommendedCastHashesArray = await recommendedCastHashesResponses.json().then(response => response.result);
console.log(recommendedCastHashesArray); // logs information about the cast hashes in ranked in order of recommendationStep 3: Using Neynar to retrieve casts:
Enabling Pagination
Configuring the feed
Parameter
Description
Options
Default
PreviousNeynar x OpenRank Guides (WIP)NextBuild "User Search" using Neynar and OpenRanks' Global Ranking API
Last updated

