Tony D’Addeo pfp
Tony D’Addeo
@deodad
someone asked about implementing a mini app feature that let's users follow other users from the mini app sharing my answer below in case it's of interest Option 1: Use viewProfile (Recommended) Use viewProfile to let user A open user B's profile where they can view their bio, casts, etc. and follow them. Your mini app will get minimized but the user can tap to expand it. This is what I'd recommend starting with since it's simple and users generally appreciate seeing the profile to help them better understand if they want to see this user's casts in their timeline. https://miniapps.farcaster.xyz/docs/sdk/actions/view-profile
3 replies
2 recasts
15 reactions

Tony D’Addeo pfp
Tony D’Addeo
@deodad
Option 2: Request a signing key Request a signing key from the user. This is a key you hold in your system that lets you write messages on behalf of the user. This approach is heavy-handed and security-minded users might not be comfortable giving you write permissions. The benefit is you can sign messages and submit them directly to hubs. https://docs.farcaster.xyz/reference/warpcast/signer-requests Option 2b: Use Neynar APIs Neynar offers APIs that handle requesting the signer, securely storing them, and then you can use a simple API endpoint with a token to hit a Neynar API. They will handle signing the message and submitting to hubs. If you're going with option 2, I'd recommend looking into this path since it will be significantly faster to implement and outsources handling of user key material. https://docs.neynar.com/reference/register-signed-key
1 reply
0 recast
3 reactions

0xFran 🫂 pfp
0xFran 🫂
@0xfran
Option 1 is clearly a winner right now. Would be nice to have a similar way to link to any farcaster page which will execute in the main window Just as an example. In @stremefun there's a link to the post where the user talks to the bot to deploy a token. If I click it, right now, it opens a new tab.
1 reply
0 recast
0 reaction

marbleheart pfp
marbleheart
@marbleheart
viewProfile does it so abruptly 🫠
0 reply
0 recast
0 reaction