SDK 2.0.0. Auth: Auth & License. Enums: Parameter enums.
Integration
Engine create / init() failed
EngineConfigmust set a non-emptylicenseToken. There are noappId/appKeyfields on Web config.- Production: your server must return the auth API body (
{success, token}or error JSON). See Auth & License. - Confirm the page can download the SDK runtime files (bundler / CDN). See Error handling.
- Confirm the page is HTTPS or localhost.
- Check
FacebetterError.code(Error handling).
How do I pass AppID / AppKey?
You don’t — not onEngineConfig. Hold them on the server, fetch a token, and pass licenseToken.
Can I use an offline .lic in the browser?
No. Web must complete an online v2 path.
How do I update the package?
Effects
Beauty looks weak or too strong
Intensities are[0.0, 1.0]. Reshape is [-1.0, 1.0] (0 = off). Try FrameType.Image for stills. Style enums: Parameter enums.
Filter / sticker does nothing
Pass the.fbd path or bytes directly to setFilter / setSticker. Empty string throws — call clearFilter() / clearSticker().
Virtual background is blank
CallsetVirtualBackgroundBlur(level) or setVirtualBackground(path|Uint8Array), not a options object. 0 blur clears the effect. For green screen, setChromaKey only sets the mask; still set blur or an image.
Output is black
Video may not have a frame yet (videoWidth === 0). Canvas context missing. Call processImage only after engine.initialized.
Performance
Preview is slow
Camera: useFrameType.Video, cap capture resolution (for example 720p), avoid landmarks callbacks, and run the loop in requestAnimationFrame. Watch engine.getStats().avgProcessTimeMs.
For large gallery stills, do not send the original into processImage on every slider tick. Build a smaller preview frame when the file opens; export the original once. See Best practices.
Memory grows in an SPA
Callengine.destroy() when leaving the page. Do not leak engines across route changes.
Compatibility
Supported: Chrome 57+, Firefox 52+, Safari 11+, Edge 16+. On mobile, lower capture resolution and effect intensities.React example
demo/web/react in the SDK repo.

