Add post button to your frame with following URL https://dev.frames.fun/fc and URL search params:
redirect - URL-encoded path back to your frame - e.g. https://myframe.vercel.app/path/to/callbackappId - your app id (different from your API key!)a - action (like or recast)ch - full cast hash (a shortened hash will not work!)cf - FID of the author of the castExample implementation with Frames.js
<Button
action="post"
target={`https://dev.frames.fun/fc?redirect=${frameurl}&appId=${appId}&a=like&ch=0xb2b2ed62b0eeb33e382e86f0e93cd642d720c655&cf=1214`}>
Like Cast
</Button>
Once the user fulfils the permissions flow, including configuring a valid signer via frames.fun, and completing the action via our frame - they will redirect back to your redirect url with the following URL search parameter:
c - user confirmation: true if the action was approved, otherwise false .A cast intent stores a specific cast template, which can then be cast by your users by redirecting them to the frames.fun frame. Create an intent with the following API call:
curl -X POST <https://dev.frames.fun/api/cast_intent> \\
-H "Content-Type: application/json" \\
-d '{"apiKey": "<YOUR_API_KEY>", "text": "gm"}'
Add post button to your frame with following URL https://dev.frames.fun/fc and URL search params:
redirect - URL-encoded path back to your frame - e.g. https://myframe.vercel.app/path/to/callbackappId - your app id (different from your API key!)a - casti - intent id (save from the above POST request)