@@ -474,8 +474,7 @@ controller.api.messenger_profile.get_account_linking(function (err, accountLinki
474
474
controller .api .messenger_profile .delete_account_linking ();
475
475
controller .api .messenger_profile .domain_whitelist (' https://localhost' );
476
476
controller .api .messenger_profile .domain_whitelist ([' https://127.0.0.1' , ' https://0.0.0.0' ]);
477
- controller .api .messenger_profile .delete_domain_whitelist (' https://localhost' );
478
- controller .api .messenger_profile .delete_domain_whitelist ([' https://127.0.0.1' , ' https://0.0.0.0' ]);
477
+ controller .api .messenger_profile .delete_domain_whitelist ();
479
478
controller .api .messenger_profile .get_domain_whitelist (function (err , data ) {
480
479
console .log (' ****** Whitelisted domains :' , data);
481
480
});
@@ -492,14 +491,19 @@ controller.api.messenger_profile.get_home_url(function (err, data) {
492
491
493
492
controller .api .messenger_profile .delete_home_url ();
494
493
495
- controller .hears ([' hello' ],' facebook_postback' , function (bot , message ) {
496
- // ...
494
+ // Target Audience
495
+ controller .api .messenger_profile .target_audience ({
496
+ " audience_type" : " custom" ,
497
+ " countries" : {
498
+ " whitelist" : [" US" , " CA" ]
499
+ }
497
500
});
498
-
499
- controller .hears ([ ' help ' ], ' facebook_postback ' , function ( bot , message ) {
500
- // ...
501
+ controller . api . messenger_profile . delete_target_audience ();
502
+ controller .api . messenger_profile . get_target_audience ( function ( err , data ) {
503
+ console . log ( ' ****** Target Audience : ' , data);
501
504
});
502
505
506
+
503
507
```
504
508
505
509
0 commit comments