Skip to content

Commit 457b8b8

Browse files
authored
fix(integrations/messenger): update to v5 (#354)
1 parent 4dd2907 commit 457b8b8

File tree

4 files changed

+46
-28
lines changed

4 files changed

+46
-28
lines changed
Lines changed: 34 additions & 0 deletions
Loading

integrations/integration-guides/assets/icons/messenger.svg

Lines changed: 0 additions & 8 deletions
This file was deleted.

integrations/integration-guides/messenger.mdx

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Messenger
3-
description: Add your bot to Messenger using the official integration
4-
icon: '/integrations/integration-guides/assets/icons/messenger.svg'
2+
title: Messenger and Facebook
3+
description: Add your bot to Messenger and Facebook using the official integration
4+
icon: '/integrations/integration-guides/assets/icons/messenger-and-facebook.svg'
55
---
66

77
{/* vale off */}
@@ -14,7 +14,7 @@ import Cards from '/snippets/integrations/cards/botpress/messenger.mdx'
1414

1515
{/* vale on */}
1616

17-
The official Messenger integration allows users to chat with your bot by messaging a Facebook page.
17+
The official Messenger and Facebook integration allows users to chat with your bot by messaging a Facebook page.
1818

1919
## Setup
2020

@@ -82,7 +82,7 @@ The official Messenger integration allows users to chat with your bot by messagi
8282
<Step title="Install the integration">
8383

8484
1. In Botpress Studio, select **<Icon icon="boxes"/> Explore Hub** in the upper-right corner.
85-
2. Search for the **Messenger** integration, then select **Install Integration**.
85+
2. Search for the **Messenger and Facebook** integration, then select **Install Integration**.
8686
3. In the **Configuration** menu, select the drop-down menu, then select **Configure by manually supplying the Meta app details**.
8787

8888
</Step>
@@ -164,7 +164,11 @@ The official Messenger integration allows users to chat with your bot by messagi
164164
</Note>
165165
</Step>
166166
<Step title="Subscribe to webhook fields">
167-
Under **Webhook fields**, subscribe to `messages` and `messaging_postbacks`.
167+
Under **Webhook fields**, subscribe to:
168+
169+
- `messages`
170+
- `messaging_postbacks`
171+
- `feed`
168172
</Step>
169173
</Steps>
170174

@@ -244,12 +248,6 @@ To get the Messenger ID of the recipient:
244248
event.tags.message["messenger:recipientId"]
245249
```
246250

247-
or
248-
249-
```js
250-
event.tags.conversation["messenger:recipientId"]
251-
```
252-
253251
### Sender ID
254252

255253
To get the Messenger ID of the sender:
@@ -258,12 +256,6 @@ To get the Messenger ID of the sender:
258256
event.tags.message["messenger:senderId"]
259257
```
260258

261-
or
262-
263-
```js
264-
event.tags.conversation["messenger:senderId"]
265-
```
266-
267259
### Conversation ID
268260

269261
To get the Messenger ID of the conversation:

snippets/integrations/versions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ export const integrationVersions = {
380380
"id": "intver_01KB60NV614CV1YH4C711K4KNT"
381381
},
382382
"messenger": {
383-
"version": "5.0.2",
384-
"id": "intver_01KB60P3SPQ2ZWJRQTCDG61AXQ"
383+
"version": "5.0.4",
384+
"id": "intver_01KBFTQ4V8C0C2JGXNK58A88N3"
385385
},
386386
"mindtickle": {
387387
"version": "2.0.0",

0 commit comments

Comments
 (0)