This page matches SDK 2.0.0. Auth: Auth & License.
Error codes (FBErrorCode)
Setter APIs return int. 0 is success. createEngineWithConfig: and processImage: return objects (nil on failure).
Check return values
Engine events
FBEngineCallbacks.onEngineEvent reports license and init asynchronously. Set callbacks immediately after creating the engine.
Image processing
Validate the frame, settype, and treat a nil return as FBErrorCode_Process.
toFile: (returns FBErrorCode):
Logging
Enable logs before creating the engine. Create the log directory if you write a file.Practical checks
-1Invalid argument: empty.fbdpath, nilNSData, intensity outside the documented range, or a nil config.-2Not initialized: calling setters after a failedcreateEngineWithConfig:(the instance isnil— do not send messages to it).-3License: wrongappId/appKey, unbound Bundle ID, expired token, or no network for online auth. See Auth & License.-5I/O: missing filter / sticker / background file, or unreadable sandbox path.- External GL: if
externalContext = YES, create and process on the same OpenGL ES thread; otherwiseprocessImage:can returnnil.

