Set Two-Step Verification Code
POST https://graph.facebook.com/{{Version}}/{{Phone-Number-ID}}
You can use this endpoint to change two-step verification code associated with your account. After you change the verification code, future requests like changing the name, must use the new code.
You set up two-factor verification and register a phone number in the same API call.
You must use the parameters listed below to change two-step verification
Parameters
Name | Description |
---|---|
pin
|
Required
.
A 6-digit PIN you want to use for two-step verification. |
Request Body
{"pin"=>"<6-digit-pin>"}
HEADERS
| Key | Datatype | Required | Description |
| Content-Type
| string | | |
RESPONSES
status: OK
{"success":true}