Build an Embedded App
This guide explains how to build, test, and submit an Embedded app: a web app that runs in an iframe inside the Hootsuite dashboard, such as in Perch or Nest. Read the pages in order the first time. After that, use them as a reference.
| # | Page | Summary |
|---|---|---|
| 1 | Overview | What an Embedded app is, where it renders, and how it differs from Content Source, Media Library, and Plan apps. |
| 2 | Architecture and concepts | The iframe, the postMessage handshake, surface context, OAuth brokered by Hootsuite, and your own backend. |
| 3 | Get started with the template | Install the template, configure .env, and run the HTTPS dev server. |
| 4 | Create and configure the app in the Developer Portal | Create the app and its Embedded extension, choose surfaces, and configure OAuth 2.0 with your provider. |
| 5 | Develop and test | Load your app from a development URL or from an uploaded bundle, and test it in Hootsuite. |
| 6 | Call your own backend | Use useBackend(), accept the Bearer token, configure CORS, and handle 401 responses with token renewal and Reconnect. |
| 7 | Surface context reference | The context Hootsuite sends for each surface, including Perch's selectedDate, viewType, and filters. |
| 8 | UI guidelines | Build with the Bento design system, use design tokens, and meet WCAG 2.1 AA. |
| 9 | Build, upload, and submit | Produce dist/app.js, set BACKEND_HOST per environment, upload the bundle, and submit for review. |
| 10 | Troubleshooting and FAQ | Fixes for common problems with certificates, OAuth, Developer Portal settings, and the backend. |