Skip to main content

facebook@0.2.0

Adaptor

Adaptor.execute(operations) ⇒ Operation

Execute a sequence of operations. Wraps @openfn/language-common/execute, and prepends initial state for http.

Kind: static method of Adaptor

ParamTypeDescription
operationsOperationsOperations to be performed.

Example

execute(
create('foo'),
delete('bar')
)(state)

Adaptor.postMessage(params) ⇒ Operation

Post a message

Kind: static method of Adaptor
Access: public

ParamTypeDescription
paramsobjectdata to make the fetch

Example

postMessage({
"recipient": {
"id": "your-psid"
},
"message": {
"text": "your-message"
}
})