For the complete documentation index, see llms.txt. This page is also available as Markdown.

Integrations

The SDK Loader can be integrated with any modern framework. This section provides framework-specific guides for frameworks that require additional configuration.

Available guides

  • Next.js: Integration guide for Next.js applications, with examples for App Router and Pages Router.

General integration

For React applications with Vite or Create React App, follow the Integration guide, which includes a complete example.

Other frameworks

The SDK Loader works with any JavaScript framework. The general pattern is:

1

Install the package

Install the package @facephi/sdk-loader.

2

Create a container

Create a container element in your template.

3

Load the SDK on the client

Call loadSdk() when the component mounts (client-side only).

4

Listen for events

Listen for SDK events.

In server-side rendering (SSR) frameworks, make sure loadSdk() is only called on the client side, as it requires browser APIs.

Last updated