Graph API 版本

Messenger Ads Partial Automated Step

閱讀中

Each step of a CTMLG lead gen message template

例子

Graph API Explorer
GET /v21.0/{messenger-ads-partial-automated-step-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
  // Returns a `Facebook\FacebookResponse` object
  $response = $fb->get(
    '/{messenger-ads-partial-automated-step-id}',
    '{access-token}'
  );
} catch(Facebook\Exceptions\FacebookResponseException $e) {
  echo 'Graph returned an error: ' . $e->getMessage();
  exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
  echo 'Facebook SDK returned an error: ' . $e->getMessage();
  exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
    "/{messenger-ads-partial-automated-step-id}",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{messenger-ads-partial-automated-step-id}",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{messenger-ads-partial-automated-step-id}"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];
如果想了解如何使用 Graph API,請參閱我們的使用 Graph API 指南

參數

這個端點沒有任何參數。

欄位

欄位描述
id
numeric string

The id of the object

allow_to_skip
bool

This boolean determines whether a user is given the option to skip a question

answer_crm_field_ids
list<string>

List of crm field ids for answers. These map to answers field

answer_validation_enabled
bool

This boolean determines whether Answer Validation should be enabled

answers
list<string>

List of potential answers user can give

carousel_answers
list<MessengerAdsPartialAutomatedStepCarouselAnswerType>

List of potential answers user can give if carousel options is selected

crm_field_id
string

FieldID which will be used to submit answer to CRM

cta
MessengerAdsPartialAutomatedStepMessengerAdsPartialAutomatedCtaShape

All data necessary to add CTA to step

invalid_reply_text
string

Message text sent to the user when they reply with an invalid answer.

media_content
string

Hash or id of the media content of the broadcast message

media_type
enum

Media type of the broadcast message

message
string

Message sent to user in this step

next_step_ids
list<numeric string>

List of next steps. These map to answers above

options_format
enum

Format option for multiple choice options

prefill_type
enum

Type of prefill expected: email, zip code etc

qualifying_answers_list
list<string>

List of advertiser-designated valid answers that are used to determine whether or not a lead should be disqualified. Currently being used for ZIP code disqualification.

reply_type
enum

Type of Reply expected: Quick Replies, Prefill etc

step_list

StepList this step belongs to

step_type
enum

Type of Step: Question/Confirmation etc

Error Codes

錯誤說明
100Invalid parameter

建立中

你無法在此端點執行此操作。

更新中

你無法在此端點執行此操作。

正在刪除

你無法在此端點執行此操作。