@openfn/language-facebook 0.2.1 → 0.2.3
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.
- package/README.md +12 -11
- package/package.json +2 -2
- package/types/Adaptor.d.ts +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
|
|
3
|
+
Language Pack for building expressions and operations to interact with the
|
|
4
|
+
Facebook Messenger API.
|
|
4
5
|
|
|
5
6
|
## Documentation
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
### Configuration
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
15
|
+
### postMessage
|
|
16
16
|
|
|
17
17
|
#### sample expression using operation
|
|
18
18
|
|
|
19
19
|
```js
|
|
20
20
|
postMessage({
|
|
21
21
|
recipient: {
|
|
22
|
-
id:
|
|
22
|
+
id: '<PSID>',
|
|
23
23
|
},
|
|
24
24
|
message: {
|
|
25
|
-
text:
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "An Language Package for Facebook Messenger API",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"author": "Open Function Group",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"configuration-schema.json"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@openfn/language-common": "^1.7.
|
|
15
|
+
"@openfn/language-common": "^1.7.6",
|
|
16
16
|
"request": "^2.88.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|