This page matches SDK 2.0.0. Preset meanings: Parameter enums. Auth: Auth & License.
+[FBImageFrame createWithNSImage:]. Minimum OS: macOS 10.15, architectures x86_64 and arm64. Use AppKit (NSImage) for stills.
Logging
FBLogLevel
FBLogConfig
+[FBBeautyEffectEngine setLogConfig:] before createEngineWithConfig:. Returns FBErrorCode (0 success, -1 if config is nil).
Engine configuration
FBEngineConfig
Auth priority: if
licenseToken is non-empty, validate that token locally and skip /facebetter/v2/auth. Otherwise use appId + appKey for online auth. Bind the app Bundle ID in the Dashboard. Command-line tools without a bundle should bind the process name.
FBFrameType
Set on FBImageFrame.type before processImage:. Not a method argument.
FBBeautyEffectEngine
createEngineWithConfig: returns nil on failure. Integer methods return FBErrorCode (0 = success).
Skin
Reshape
setReshape:intensity: — intensity [-1.0, 1.0], 0 off. FBReshape values 0–25: FBReshape_FaceThin … FBReshape_BrowThickness. Directions: Parameter enums.
Body reshape
setBodyReshape:intensity: — intensity [0.0, 1.0], 0 off. Requires resource_body.fbd via addResourcePack: first. FBBodyReshape values 0–8. See Parameter enums and Optional resource packs.
FBSmoothingStyle: Natural, Texture, Smooth. FBWhiteningStyle: ColdWhite, PinkWhite, WarmWhite, Wheat, Tan.
Makeup
Intensity methods take[0, 1]. Shape / color types: Parameter enums.
Virtual background and chroma key
Filters and stickers
No register-by-id. Path or bytes; GPU resources are created on the nextprocessImage:.
Empty path / nil or empty
NSData → FBErrorCode_InvalidArgument.
Process
imageFrame.type. Output format matches input. Returns nil on failure.
Error codes
-1 is invalid argument. -2 is not initialized.
Stats and callbacks
FBEngineStats
FBEngineEventCode
FBEngineCallbacks
Face result types
FBImageFrame
Create
Operations
Accessors:
width, height, stride, size, type, data, format, texture. YUV: dataY / dataU / dataV / dataUV and matching strides.
Makeup / style enums
Objective-C symbols live inFBBeautyParams.h. Do not duplicate meaning tables here — see Parameter enums.
FBSmoothingStyle,FBWhiteningStyleFBLipstickColorFBBlushStyle,FBBlushColorFBContourStyleFBEyeShadowStyle,FBEyeShadowColorFBEyeLinerStyle,FBEyeLinerColorFBEyebrowStyle,FBEyebrowColorFBEyelashStyle,FBEyelashColorFBPupilColor

