@openfn/language-facebook 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +12 -11
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,35 +1,36 @@
1
1
  # Language Facebook
2
2
 
3
- Language Pack for building expressions and operations to interact with the Facebook Messenger API.
3
+ Language Pack for building expressions and operations to interact with the
4
+ Facebook Messenger API.
4
5
 
5
6
  ## Documentation
6
7
 
7
- ## sample configuration
8
+ ### Configuration
8
9
 
9
- ```json
10
- {
11
- "accessToken": "yOuR-aCcEsS-tOkEn"
12
- }
13
- ```
10
+ View all the required and optional properties for `state.configuration` in the
11
+ official
12
+ [configuration-schema](https://docs.openfn.org/adaptors/packages/facebook-configuration-schema/)
13
+ definition.
14
14
 
15
- ## postMessage
15
+ ### postMessage
16
16
 
17
17
  #### sample expression using operation
18
18
 
19
19
  ```js
20
20
  postMessage({
21
21
  recipient: {
22
- id: "<PSID>",
22
+ id: '<PSID>',
23
23
  },
24
24
  message: {
25
- text: "<YOUR MESSAGE GOES HERE>",
25
+ text: '<YOUR MESSAGE GOES HERE>',
26
26
  },
27
27
  });
28
28
  ```
29
29
 
30
30
  ## Development
31
31
 
32
- Clone the [adaptors monorepo](https://github.com/OpenFn/adaptors). Follow the `Getting Started` guide inside to get set up.
32
+ Clone the [adaptors monorepo](https://github.com/OpenFn/adaptors). Follow the
33
+ `Getting Started` guide inside to get set up.
33
34
 
34
35
  Run tests using `pnpm run test` or `pnpm run test:watch`
35
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-facebook",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "An Language Package for Facebook Messenger API",
5
5
  "main": "dist/index.cjs",
6
6
  "author": "Open Function Group",