keccers
@keccers.eth
How are you supposed to set up a SHARE TO FARCASTER button so that it works in a v2 Frame, on both mobile and desktop? 🤗 the question of the evening....
4 replies
0 recast
11 reactions
Angel - Not A Bot
@sayangel
Did you figure this out? I recently did it (2 days ago) and happy to share
1 reply
0 recast
0 reaction
keccers
@keccers.eth
cc @jc4p no we really didn't we noticed that there are two prefixes farcaster:// and https://warpcast and that you need the former for mobile, and the latter for desktop? this seems to work but it is kind of janky. in other people's implementations the cast modal breaks out of the frame. the above resulted in a cast modal that loaded in the frame, and was weird...
2 replies
0 recast
2 reactions
keccers
@keccers.eth
whoa... it's supposed to be https:// warpcast but it stripped out the https. you get me tho
0 reply
0 recast
0 reaction
Kasra Rahjerdi
@jc4p
works on mobile: shareLink.href = `farcaster://~/compose?text=${encodedText}&embeds[]=${encodedImage}&embeds[]=${encodedAppUrl}`; works on desktop: shareLink.href = `https://warpcast.com/~/compose?text=${encodedText}&embeds[]=${encodedImage}&embeds[]=${encodedAppUrl}`; idk why
1 reply
0 recast
2 reactions