You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+42-6
Original file line number
Diff line number
Diff line change
@@ -189,14 +189,14 @@ These are standard text replies. It can sent like:
189
189
190
190
```yaml
191
191
- reply_type: text
192
-
text: Hello World!
192
+
text: "Hello World!"
193
193
```
194
194
195
195
Text replies can also include suggestions, which will be rendered as quick replies:
196
196
197
197
```yaml
198
198
- reply_type: text
199
-
text: What is your favorite color?
199
+
text: "What is your favorite color?"
200
200
suggestions:
201
201
- text: Blue
202
202
- text: Red
@@ -206,7 +206,7 @@ Text replies can also include buttons:
206
206
207
207
```yaml
208
208
- reply_type: text
209
-
text: Would you like to give us a call?
209
+
text: "Would you like to give us a call?"
210
210
buttons:
211
211
- type: call
212
212
phone_number: "+15552991212"
@@ -292,7 +292,7 @@ This is the most common button type. When a user presses a button that is `paylo
292
292
293
293
```yaml
294
294
- reply_type: text
295
-
text: Please press the button below
295
+
text: "Please press the button below"
296
296
buttons:
297
297
- type: payload
298
298
text: 'Press me!'
@@ -308,25 +308,29 @@ The `url` button is useful when sharing a link to a website. By default, it will
308
308
309
309
```yaml
310
310
- reply_type: text
311
-
text: Find out more via our website
311
+
text: "Find out more via our website"
312
312
buttons:
313
313
- type: url
314
314
text: 'Visit website'
315
315
url: 'https://example.org'
316
+
messenger_extensions: true
316
317
317
318
```
318
319
320
+
Enabling messenger_extensions allows your webview to access a selection of features from the Messenger platform. More info [here](https://developers.facebook.com/docs/messenger-platform/webview/extensions?source=post_page). Without this parameter set to true, the webview opens in a separate tab or window if a user is visiting from the 'messenger.com' domain.
321
+
319
322
You can also specify the height of the webview window that opens up in Messenger via: `webview_height`. You can choose between `compact`, `tall`, and `full`.
320
323
321
324
More info [here](https://developers.facebook.com/docs/messenger-platform/webview).
322
325
326
+
323
327
#### call
324
328
325
329
The `call` button type will prompt the user to dial the specified number. The number will be pre-filled in, but the user will still have to confirm by confirming via the modal that is shown. To create a `call` button:
326
330
327
331
```yaml
328
332
- reply_type: text
329
-
text: Give us a ring!
333
+
text: "Give us a ring!"
330
334
buttons:
331
335
- type: call
332
336
text: 'Call'
@@ -460,3 +464,35 @@ To send an audio clip:
460
464
The `audio_url` should be set to URL where the video has been uploaded.
461
465
462
466
Audio replies support buttons and suggestions like text replies.
467
+
468
+
### Account Linking
469
+
470
+
Account Linking allows you to invite users to log-in using your own authentication flow, and to receive a Messenger page-scoped ID (PSID) upon completion. You can find more info about Facebook Account Linking [here](https://developers.facebook.com/docs/messenger-platform/identity/account-linking).
471
+
472
+
#### Login
473
+
474
+
The `login` button type will prompt the user to log-in using your own authentication flow in the case he or she has an account with your business. You can find more info about Facebook Log In Button [here](https://developers.facebook.com/docs/messenger-platform/reference/buttons/login).
475
+
476
+
To create a `login` button:
477
+
478
+
```yaml
479
+
- reply_type: text
480
+
text: "Log in to access your account information."
481
+
buttons:
482
+
- type: login
483
+
url: "https://my-app.com/login"
484
+
```
485
+
486
+
#### Logout
487
+
488
+
The `logout` button type is used in the account linking flow to unlink the message recipient's identity on Messenger with their account on your site. You can find more info about Facebook Log Out Button [here](https://developers.facebook.com/docs/messenger-platform/reference/buttons/logout).
0 commit comments