Content pfp
Content
@
https://warpcast.com/~/channel/frames
0 reply
4 recasts
4 reactions

Paul pfp
Paul
@p4ulcristian
Can someone help me with fc:frame:state? The documentation is shallow, I don't get back the state in the request, only buttonIndex. Please be so kind and enlighten me :D
1 reply
0 recast
1 reaction

Mark Carey 🎩🫂 pfp
Mark Carey 🎩🫂
@markcarey
You should get a "state" element in the POST json body ..... BUT .... you won't get "state" on the *first* POST from your initial frame. Only on subsequent POSTs. Personally, I hope this changes in future. https://warpcast.com/markcarey/0x1b12ea2f
2 replies
0 recast
0 reaction

Paul pfp
Paul
@p4ulcristian
The problem is, I don't get it on subsequent frames either. Not getting a state is also a state, so I have no problem with that. To anyone having the same problem, use fc:button:1:action "link" and fc:button:1:target "https://something/:custom-parameter/:other-custom-parameter" .
1 reply
0 recast
0 reaction

Paul pfp
Paul
@p4ulcristian
My encoding is like fc:frame:state %7B%22a%22%3A%22b%22%7D This should be {"a":"b"}. I don't know where I mess up if it works for you :D
1 reply
0 recast
0 reaction