Rozdíly

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

Odkaz na výstup diff

Následující verze
Předchozí verze
skoda-ep:modules:messenger_bot_module:st_extender [29.03.2018 06:16]
jan.lorenc vytvořeno
skoda-ep:modules:messenger_bot_module:st_extender [29.03.2018 07:07] (aktuální)
jan.lorenc
Řádek 1: Řádek 1:
 +====== Standard usage ======
 +
 +By default messenger bot sends updates based on subscribed article categories. Users will be subscribed to main category of article on which page optin button is located.
 +
 ==== Inserting Shortcode into Page ==== ==== Inserting Shortcode into Page ====
  
Řádek 25: Řádek 29:
  
 Notifications for each post will by sent only once. Notifications for each post will by sent only once.
 +
 +====== Extender usage ======
 +
 +When extender module is loaded, bot will publish post notifications based on POST_TYPE of published content.
 +For example: if user subscribes to `post`, he will be notified on every new `post` (article) published regardless on category of mentioned post.
 +
 +==== POST_TYPE Setup ====
 +
 +In SKODA options -> FB msg - global tab -> section `EXTENDER SETTINGS` you can check which POST_TYPE will be available to optin to.
 +Editor then will be able to create corresponding option buttons in posts/​pages.
 +
 +{{:​skoda-ep:​modules:​messenger_bot_module:​extender-1.png?​300|}}
 +
 +the optin button can be inserted: ​
 +
 +{{:​skoda-ep:​modules:​messenger_bot_module:​extender-2.png?​300|}}
 +
 +Or in texteditor shorcode: ​
 +
 +''​[fb-msg-optin-ext msg="​Message!"​ type="​POST_TYPE-ID"​]''​
 +
 +POST_TYPE ID is hard to setup/​figure out, so rather use insertion by standard TinyMCE insert button - which contains easy to select dropbox list.
 +
 +==== Publishing post with notification ====
 +
 +Publishing is the same as in standard functionality -> only change is that if some users are subscribed to this post_type, will be notified regardless of article categories.