// After quiz completioncomposeCast({ text: "I'm a Ravenclaw! 🦅 What house are you?", embeds: [quizUrl]});// After NFT mintcomposeCast({ text: "Just minted my first collectible! 🎨", embeds: [mintUrl, nftImageUrl]});// After game milestonecomposeCast({ text: "Finally beat level 50! This game is addictive 🎮", embeds: [gameUrl]});
// Challenge patterncomposeCast({ text: "Beat my time of 2:34 if you can! ⏱️", embeds: [challengeUrl]});// Social proof pattern composeCast({ text: "Join 50,000+ players already playing!", embeds: [gameUrl]});// FOMO patterncomposeCast({ text: "Limited edition drop ends in 2 hours! 🔥", embeds: [dropUrl]});
The composer opens in a native overlay or new window depending on the client. Users can modify the text before posting, so don’t rely on exact text for tracking. Use URL parameters or unique embeds for attribution tracking.
useComposeCast is one of the most powerful hooks for viral growth. Strategic implementation of sharing at the right moments can significantly increase your Mini App’s reach and user acquisition.