Skip to main content

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.

#PageSummary
1OverviewWhat an Embedded app is, where it renders, and how it differs from Content Source, Media Library, and Plan apps.
2Architecture and conceptsThe iframe, the postMessage handshake, surface context, OAuth brokered by Hootsuite, and your own backend.
3Get started with the templateInstall the template, configure .env, and run the HTTPS dev server.
4Create and configure the app in the Developer PortalCreate the app and its Embedded extension, choose surfaces, and configure OAuth 2.0 with your provider.
5Develop and testLoad your app from a development URL or from an uploaded bundle, and test it in Hootsuite.
6Call your own backendUse useBackend(), accept the Bearer token, configure CORS, and handle 401 responses with token renewal and Reconnect.
7Surface context referenceThe context Hootsuite sends for each surface, including Perch's selectedDate, viewType, and filters.
8UI guidelinesBuild with the Bento design system, use design tokens, and meet WCAG 2.1 AA.
9Build, upload, and submitProduce dist/app.js, set BACKEND_HOST per environment, upload the bundle, and submit for review.
10Troubleshooting and FAQFixes for common problems with certificates, OAuth, Developer Portal settings, and the backend.