SDK 2.0.0. Parameter enums · Auth & License.
Integration
Engine Create returns nullptr
resource_pathmust be theresource.fbdfile (not a directory)- Set
license_tokenor validapp_id+app_key - Enable
SetLogConfigbeforeCreate - Confirm
facebetter.dllmatches the import library
Header not found / link errors
Includefacebetter/ from the SDK include directory. Link facebetter.lib and ship facebetter.dll next to the executable.
SetRenderView is missing
The SDK has no SetRenderView. Draw the ProcessImage output in your own view.
Effects
Beauty looks weak or off
Intensities default to0 (off). There is no SetBeautyTypeEnabled. Reshape / makeup need a face. Try FrameType::Video for camera frames.
Reshape looks inverted
Range is[-1.0, 1.0]. Positive and negative are opposite directions (see Parameter enums).
Filter / sticker does nothing
Pass a.fbd path or bytes to SetFilter / SetSticker. They take effect on the next ProcessImage.
Virtual background / chroma key
UseSetVirtualBackgroundBlur, SetVirtualBackground(path|bytes), ClearVirtualBackground. Chroma key: SetChromaKey(ChromaKeyColor::Green) then similarity / smoothness / desaturation. ClearChromaKey() restores portrait segmentation.
Performance
Preview is slow
Lower resolution, useFrameType::Video, reduce stickers / virtual background, and check GetStats().avg_process_time_ms. Avoid recreating ImageFrame from files every frame — feed camera buffers. For large gallery stills, build a smaller preview frame when the photo opens and export the original once. See Best practices.
High memory
Reuse pixel buffers. Dropshared_ptr<ImageFrame> when unused. Do not create a new engine per frame.
Remote Desktop / VM has no beauty preview
Hardware OpenGL may be unavailable. Test on a machine with a real GPU driver.Auth
license_token vs app_id + app_key
If license_token is non-empty, it wins (token / {token} JSON / .lic). Otherwise native online v2 uses app_id + app_key. See Auth & License.
Event 1 or 101
License failed or init failed. Read the callback message and Debug logs.

