Version API du graphe

    Whats App Business Phone Number Request Code

    Lecture

    Vous ne pouvez pas effectuer cette opération sur ce point de terminaison.

    Création

    Request a business phone number verification code.

    Upon success, the API will respond with true and a verification code will be sent to the business phone number, using the delivery method and language specified in the request. See Registering Phone Numbers for additional information about registering business phone numbers programmatically.

    You can make a POST request to request_code edge from the following paths:
    When posting to this edge, no Graph object will be created.

    Requirements

    TypeDescription

    Access Tokens

    User or System User

    Permissions

    whatsapp_business_management

    Request Syntax

    POST /<WHATSAPP_BUSINESS_PHONE_NUMBER_ID>/request_code
      ?code_method=<CODE_DELIVERY_METHOD>
      &language=<LANGUAGE>

    Example Request

    curl -X POST 'https://graph.facebook.com/v21.0/110200345501442/request_code?code_method=SMS&language=en_US' \
    -H 'Authorization: Bearer EAAJB...'
    

    Example Response

    {
      "success": true
    }
    

    Paramètres

    ParamètreDescription
    code_method
    enum {SMS, VOICE}

    Desired code delivery method.

    Obligatoire
    language
    locale string

    Language and locale code indicating the language in which the code should be sent. For example, en_US.

    See Supported Langauges.

    Obligatoire

    Type de retour

    Struct {
    success: bool,
    }

    Error Codes

    ErreurDescription
    136024Request code error
    100Invalid parameter
    200Permissions error

    Mise à jour

    Vous ne pouvez pas effectuer cette opération sur ce point de terminaison.

    Suppression

    Vous ne pouvez pas effectuer cette opération sur ce point de terminaison.