You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each page can have different metadata to create unique embeds.
27
-
28
-
<Tip>
29
-
For Next.js projects, use the [Metadata API](https://nextjs.org/docs/app/building-your-application/optimizing/metadata) to generate the `fc:frame` meta tag dynamically.
30
-
</Tip>
14
+
<CodeGroup>
15
+
```html html metadata
16
+
<!DOCTYPE html>
17
+
<htmllang="en">
18
+
<head>
19
+
<title>My Mini App</title>
20
+
<meta
21
+
name="fc:miniapp"
22
+
content='{
23
+
"version": "next",
24
+
"imageUrl": "https://example.com/preview.png",
25
+
"button": {
26
+
"title": "Open App",
27
+
"action": {
28
+
"type": "launch_frame",
29
+
"url": "https://example.com"
30
+
}
31
+
}
32
+
}'
33
+
/>
34
+
</head>
35
+
<body>
36
+
<!-- Your app content -->
37
+
</body>
38
+
</html>
39
+
```
40
+
41
+
```jsx next.js metadata
42
+
// app/layout.tsx or app/page.tsx (Next.js App Router)
0 commit comments