Complete Meta business login
Changed onFinishes a Meta business login after the user approves access, connects the Meta ads account and sends them back to your app.
This is the Facebook Login for Business redirect target. Meta supplies the single-use authorization code and the authenticated state returned by connectAds. No bearer token is sent by the browser.
The state expires after 30 minutes and binds the user, profile, Page selection and ad-account scope.
Outcomes
- Success reconnects only metaads and redirects to the original redirect_url.
- Invalid state returns 400.
- Inaccessible profiles or missing ads access cannot connect.
- Dashboard logins with several Pages redirect to the Facebook Page picker with an encrypted selectionToken valid for ten minutes. Listing and selecting require the initiating user and current profile access.
No plaintext platform token is returned to the browser.
Request
- Base URLhttps://zernio.com/api
- Authnone required
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Authenticated state from the initial connectAds response.
Single-use authorization code returned by Meta.
Meta authorization error when the user declines the dialog.
Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- warning
added the new
accountenum value to the/response property for the response status
- warning