Graph API Version

Page Saved Message Responses

Reading

All message responses that are saved by a page

Graph API Explorer
GET /v2.10/{page-id}/saved_message_responses HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
$request = new FacebookRequest(
  $session,
  'GET',
  '/{page-id}/saved_message_responses'
);
$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */
/* make the API call */
FB.api(
    "/{page-id}/saved_message_responses",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{page-id}/saved_message_responses",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
// For more complex open graph stories, use `FBSDKShareAPI`
// with `FBSDKShareOpenGraphContent`
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{page-id}/saved_message_responses"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

Parameters

This endpoint doesn't have any parameters.

Fields

Reading from this edge will return a JSON formatted result:

{ "data": [], "paging": {} }

data

A list of SavedMessageResponse nodes.

paging

For more details about pagination, see the Graph API guide.

Validation Rules

ErrorDescription
200Permissions error
210User not visible

Creating

You can make a POST request to saved_message_responses edge from the following paths:
When posting to this edge, a SavedMessageResponse will be created.

Parameters

NameDescription
category
enum{STANDARD, INSTANT_REPLY, AWAY_MESSAGE, WELCOME_MESSAGE, FOLLOW_UP, MESSENGER_CODE, REFERRAL}

The message category of the saved response, INSTANT_REPLY or AWAY_MESSAGE

Required
image
numeric string or integer

An ID of an image to use with the saved response.

is_enabled
boolean

Toggle whether to enable the message

message
string

The actual message of the saved response

Required
title
string

A title for the saved response (optional). Shown to admins only

Return Type

This endpoint supports read-after-write and will read the node represented by id in the return type.
Struct {
id: numeric string,
}

Validation Rules

ErrorDescription
262Incorrect permission to publish pages

Updating

You can't perform this operation on this endpoint.

Deleting

You can't perform this operation on this endpoint.