Skip to main content

Developer README for the facebook adaptor

Source: https://github.com/OpenFn/adaptors/tree/main/packages/facebook

Language Facebook

Language Pack for building expressions and operations to interact with the Facebook Messenger API.

Documentation

sample configuration

{
"accessToken": "yOuR-aCcEsS-tOkEn"
}

postMessage

sample expression using operation

postMessage({
recipient: {
id: "<PSID>",
},
message: {
text: "<YOUR MESSAGE GOES HERE>",
},
});

Development

Clone the adaptors monorepo. Follow the Getting Started guide inside to get set up.

Run tests using pnpm run test or pnpm run test:watch

Build the project using pnpm build.

To just build the docs run pnpm build docs