Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
Následující verze
Předchozí verze
skoda-ep:modules:messenger_bot_module:setup [06.02.2018 14:46]
jan.lorenc
skoda-ep:modules:messenger_bot_module:setup [29.03.2018 06:16] (aktuální)
jan.lorenc
Řádek 47: Řádek 47:
   * Callback URL => wordpress endpoint => https://​skoda-wlc.ys-dev.cz/​wide/​wp-json/​fb-msg/​webhook   * Callback URL => wordpress endpoint => https://​skoda-wlc.ys-dev.cz/​wide/​wp-json/​fb-msg/​webhook
   * Verify Token => write random string (will be used later)   * Verify Token => write random string (will be used later)
-  * Subscriptions Fields => check "​messages" ​and "​messaging_optins"​+  * Subscriptions Fields => check "​messages"​"​messaging_optins", "​messaging_postbacks"​ and "​messaging_referrals" ​
  
 Now it's time to setup Wordpress facebook messenger by section "Setup credentials in wordpress"​. After All is set up, return here and click Verify and Save to finalize setup. Now it's time to setup Wordpress facebook messenger by section "Setup credentials in wordpress"​. After All is set up, return here and click Verify and Save to finalize setup.
Řádek 64: Řádek 64:
 GENERAL OPTIONS: GENERAL OPTIONS:
   * App ID => ID of created app in facebook developers console   * App ID => ID of created app in facebook developers console
-  * App Secret => Obtained from App main dashboard ​in facebook developers console+  * App Secret => Obtained from App Settings -> Basic in facebook developers console
   * Page ID => ID of facebook page on which behalf bot will communicate. Obtaining is described in first section of this manual   * Page ID => ID of facebook page on which behalf bot will communicate. Obtaining is described in first section of this manual
   * Verify Token => string set up to validate wordpress API in facebook developers console   * Verify Token => string set up to validate wordpress API in facebook developers console
Řádek 70: Řádek 70:
   * Send from all categories => check to send notifications from all published posts. Otherwise only notifications from particular category new posts  will be sent   * Send from all categories => check to send notifications from all published posts. Otherwise only notifications from particular category new posts  will be sent
  
-CUSTOM REPLIES: 
-  * Unopted user => Turn on replies for unopted users. By default bot doesn'​t respond to them 
-  * Unopted user text => Custom message reply for unopted user 
-  * Opted user (wrong cmd) text => Custom message that will be printed when opted user writes wrong command/​reply 
-  * Opted user (wrong cmd) append `help` => Append list of available commands to previous message 
  
-SHOUTCAST: 
-  * Enable ShoutCast => Completely hide/show ShoutCast module 
- 
-==== Inserting Shortcode into Page ==== 
- 
-FB messenger bot plugin needs to be inserted into page, to display optin button for users on frontend. 
- 
-In visual editor use shortcode plugin button 
- 
-{{:​skoda-ep:​modules:​fb-app-5.png?​600|}} 
- 
-Or in texteditor shorcode: ​ 
- 
-''​[fb-msg-optin msg="​Optin for notification!"​]''​ 
- 
-msg => This message displayed on fronend above optin fb button ​ 
- 
-{{:​skoda-ep:​modules:​fb-app-6.png?​200|}} 
- 
-==== Publishing post with notification ==== 
- 
-When publishing new post (or updating older one, which was not notified by FB messenger bot) 
-check "Send one-time publish notification"​ option. 
- 
-{{:​skoda-ep:​modules:​page_publish.png?​200|}} 
- 
-After publishing/​updating,​ all users opted for selected main category will be notified. In case that wordpress doesn'​t include "main category"​ function, notifications will be sent to all assigned post categories. 
- 
-Notifications for each post will by sent only once.