Jump to: navigation, search

Save

This operation is part of the Facebook API section of the Web Services API.

Overview

Saves a Facebook interaction.

Request URL /api/v2/me/facebook/{id}
HTTP Method POST
Required Features api-multimedia

Parameters

Parameter Value
operationName Save
facebook Specified data that includes the Facebook parameters. (mandatory)

Facebook Parameters

Parameter Value
from A user name for a Facebook account.
message The actual message to send. The body should be plain text.

Samples

Request

POST api/v2/me/facebook/01QJV4TN9HUF4002
 {
    "operationName": "Save",
    "facebook" : 
        {
         "from": "vitaliy_onv",
         "message": "Hello saved facebook!"
        }
 }

HTTP Response

{
  "statusCode": 0,
  "referenceId": 16
}

CometD Response

{
"facebook": {"capabilities": ["Cancel",
                                  "Send",
                                  "AddComment",
                                  "AttachUserData",
                                  "UpdateUserData",
                                  "DeleteUserData",
                                  "SetDisposition",
                                  "SetInFocus",
                                  "Transfer"],
                "facebookType": "Outbound",
                "from": "vitaliy_onv",
                "id": "01QJV4TN9HUF4002",
                "message": "Hi saved facebook!",
                "state": "Composing",
                "subject": "Hi saved facebook!",
                "uri": "http://192.168.83.25:8090/api/v2/facebooks/01QJV4TN9HUF4002",
                "userData": {"FromAddress": "vitaliy_onv",
                              "UserData2": "DATAUPDATE-@123"}},
  "messageType": "FacebookStateChangeMessage",
  "notificationType": "FacebookSaved",
  "referenceId": 19
}
This page was last edited on February 15, 2024, at 19:11.
Comments or questions about this documentation? Contact us for support!