Overview
Use the functions provided by the@farcaster/miniapp-sdk
to navigate users from your mini app throughout the Base app and to external links with a native user experience.
Use this prompt to update your app with correct design patterns
Use this prompt to update your app with correct design patterns
External Navigation
Opening External URLs
- Farcaster SDK
- MiniKit
Use
sdk.actions.openUrl()
to safely open external websites in the client’s in-app browser:App.tsx
Composing Casts
- Farcaster SDK
- MiniKit
Use
sdk.actions.composeCast()
instead of composer intent URLs:App.tsx
Viewing Casts
- Farcaster SDK
- MiniKit
Use
sdk.actions.viewCast()
instead of cast intent URLs:App.tsx
Conditional Navigation
If your mini app can be opened in the browser, implement conditional navigation to handle cases where mini app-specific functions (e.g., Compose Cast) are unavailable.ConditionalNavigation.tsx