
ืฉืคื ๐ฎ๐ฑ ืขืืจืืช
ืชืงืฆืืจ
ืืชืงื ืช ืืจืืคื
Add Live Commenting to Drupal Sites
ืืชืืื ืืืืจื 
ืื ืืืจืกื ืืืงืืฆืจืช (TL;DR) ืฉื ืืืืจืืืช ืโDrupal.
- ืืชืงื ืืช ืืืืืื ืขื
composer require drupal/fcom, ืื ืื ื ืืืชื ืึพmodules/custom/fastcomments/. - ืืคืขื ืืืชื ืืืืฆืขืืช
drush en fastcomments, ืื ืืจื ืืืฉืง ืื ืืืื ืึพ/admin/modules. - ืืฉ ืื
Administration > Configuration > Content > FastComments(/admin/config/content/fastcomments). - ืืื ืืช ืโTenant ID ืืโAPI Secret ืืชืื ืืืืจืืช > API/SSO (EU).
- ืืืกืฃ ืืช ืืฉืื
FastCommentsืืื ืกืื ืชืืื ืืจืStructure > Content types > [type] > Manage fields.
ืืืืืื ืคืืจืกื ืึพdrupal.org/project/fcom.
ืืชืงื ื 
ืืชืืกืฃ FastComments ื-Drupal ืืืืืฃ ืืช ืืขืจืืช ืืชืืืืืช ืืืืื ืืช ืฉื Drupal ืืืขืจืืช ืชืืืืืช ืืืืจื ืืืืื ืืืช. ืืชืืกืฃ ืืื ืคืืจืกื ื-drupal.org ืืขืืื ืขื Drupal 10 ื-11.
There are two ways to install it.
ืืชืงื ื ืขื Composer
composer require drupal/fcom
drush en fastcommentsืืชืงื ื ืืื ืืช
ืืืจื ืืช ืืชืืกืฃ ื-drupal.org/project/fcom ืืื ื ืืืชื ืืชืืงืืืช ืืืชืจ ืฉืื modules/custom/fastcomments/. ืืืืจ ืืื ืืคืขื ืืืชื ืขื drush en fastcomments, ืื ืื-UI ืื ืืืืื ื-Extend (/admin/modules).
ืฉืืื ืื! ืืชืืกืฃ ืชืืื ืจืง ื-core ืฉื Drupal (user ื-field). ืืื ืืืืืืื ืื ืกืคืจืืืช Drupal ื ืืกืคืืช ืื ืืจืฉืืช.
Once the module is enabled, head to the Configuration section to set up your Tenant ID and API Secret.
ืชืฆืืจื 
ืื ืืืืืจืืช ื ืืฆืืืช ืชืืช Administration > Configuration > Content > FastComments (/admin/config/content/fastcomments).
ื ืืจืฉ
- Tenant ID - ืืืื ื-Tenant ืฉื FastComments ืฉืื. ื ืืชื ืืืฆืื ืืืช ืชืืช Settings > API/SSO (EU).
- API Secret - ื ืืจืฉ ื-Secure SSO, ืืืืืช webhook, ืืกืื ืืจืื ืืคืื. ื ืืฆื ืชืืช Settings > API/SSO (EU).
ืกืื ืื ืชืืืืืช
ืืืจ ืืช ืืืืืื'ื ืฉืืชืืื ืืืืคื ืฉืื ืืจืฆืื ื ืฉืื ืฉืื ืืืืจื ืืืชืจ ืฉืื.
- Live Comments - ืชืืืืืช ืืงืืืืืืช ืืืืืื ืืืื ืืืช.
- Streaming Chat - ืืืฉืง ืฆ'ืื ืื, ืืชืืื ืืืืจืืขืื ืืืืจืืืช ืืฉืืจืืช.
- Collab Chat - ืืขืจืืช ืืืงืฉืจ ืืืืฆืขืืช ืืืืจืช ืืงืกื ืืืืืจ ืืชืืื ืืจืืฉื. ืืืงืจืื ืืกืื ืื ืืงืกื ืืืชืืืืื ืืืื ืืืงืฉืจ.
- Collab Chat + Comments - ืื Collab Chat ืืื ืชืืืืืช ืกืื ืืจืืืืช ืืืืชื ืขืืื.
ืืฆื SSO
- None - ืืื SSO. ืืฉืชืืฉืื ืืืืืื ืืืืจืืื ืื ืืืฆืจืื ืืฉืืื FastComments.
- Simple - ืืขืืืจ ืืืืข ืืฉืชืืฉ ืืืืฅ ื-Drupal (ืฉื, ืืืืืื, ืืืืืืจ) ื-FastComments ืืื ืืืืืช ืืฆื ืืฉืจืช.
- Secure - ืืฉืชืืฉ ื-HMAC-SHA256 ืืื ืืืืช ืืฉืชืืฉื Drupal ืืื FastComments. ืืืืืฅ ืืืฉืจ ืืฉ ืื API Secret ืืืืืจ.
ืจืื ืืช ืืกืขืืฃ Single Sign-On (SSO) ืืคืจืืื.
ืืืืจืืช ื ืืกืคืืช
- CDN URL - ืืจืืจืช ืืืื ืืื
https://cdn.fastcomments.com. - Site URL - ืืจืืจืช ืืืื ืืื
https://fastcomments.com. - Email notifications - ืฉืื ืืืืืื ืืืืืจ ืืชืืื ืืืฉืจ ืชืืืื ืืืฉื ืืชืคืจืกืืช ืขื ืืชืืื ืฉืื.
ืื ืืฉื ืฉืืืช ื ืชืื ืื ืืืืืื ืืืืจืืคื, ืจืื ืืช ืืกืขืืฃ EU Data Residency.
ืืืืงื ืืืืื'ื 
ืืืืืื ืืืื ืืื ืืืืงืื ืฉื ืืชื ืืืงื ืืจื Structure > Block layout (/admin/structure/block).
- FastComments Widget - ืจืืื ืืืขืจืืช ืืจืืฉื. ืืืื ืืืืืืืืช ืืช ืืืืฉืืช ืื ืืืืืช. ืืื ืืืื ืขื ืืฉืืืืช ืฉืืืจ ืืืืืจ ืืืืื ืืฉืื ืฉื FastComments, ืื ืฉืื ืชืจืื ืจืืืืื ืืคืืืื ืืืืชื ืขืืื.
- FastComments Live Chat - ืฆ'ืื ืืฉืืืืจ ืื ืืืื ืืืช. ื ืืชื ืืืงื ืืฆื ืฉืื ืืืขืจืืช ืืืืชื ืขืืื.
- FastComments Collab Chat - ืืขืจืืช ืืืืื ืขื ืืืืจืช ืืงืกื.
- FastComments Image Chat - ืืขืจืืช ืืืืกืกืืช ืงืืืืจืืื ืืืช ืขื ืชืืื ืืช. ืืืงืจืื ืืืืฆืื ืขื ืชืืื ื ืืื ืืืฉืืืจ ืชืืืืืช ืืงืฉืืจืืช ืืืืงืืืื ืกืคืฆืืคืืื.
- FastComments Recent Comments - ืืฆืื ืชืืืืืช ืืืจืื ืืช ืืื ืืืชืจ. ืืืกืคืจ ื ืืชื ืืืชืืื ืืืืืง.
- FastComments Top Pages - ืืฆืื ืืช ืืขืืืืื ืืืชืจ ืฉืื ืขื ืืื ืืจืื ืชืืืืืช.
ืืืืืงืื ืฉืืืืงืืื ืืชืืื (Live Chat, Collab Chat, Image Chat) ืืืืื ืืืืืืืืช ืืช ืืืฉืืช ืื ืืืืืช, ืืืืคืื ืฉืืื ื ืืฉืืช ืื ืืืืจืื ืืืืืื ืืืืกืก-ื ืชืื. ืืฉืืขืืช ืืืืจ ืืื ืฉืื ืคืืขืืื ืืืคื ืืงืกืื ืืืื, views ืืืกืืืืื ืืืชืืืื ืืืฉืืช ืืื ืื ืืืืจื ื ืืกืคืช.
ืฉืืืช ืกืื ืชืืื 
ืืจืื ืืืชืจืื, ืืืจื ืืงืื ืืืืชืจ ืืืืกืืฃ ืชืืืืืช ืืื ืืฆืจืฃ ืืช ืืฉืื FastComments ืืกืืื ืืชืืื ืฉืื. ืขืืืจ ืื Structure > Content types > [type] > Manage fields ืืืืกืฃ ืืช ืืฉืื.
ืืื ืืฉืืช ืฉืืฉ ืื ืืช ืืฉืื ืืชืืืกืคื:
- ืืชื ืกืืืืก ืฉืืืคืฉืจ ืืขืืจืืื ืืืคืขืื ืื ืืืืืช ืชืืืืืช ืขืืืจ ืื ืืฉืืช.
- ืืืื ืืืชืื ืืืฉืืช ืืืคืฆืืื ืื, ืืื ืฉืชืืืื ืืืฉืชืืฉ ืโID ืืฆืื ืฉืืื ื ืงืฉืืจ ืื ืชืื ืืืฉืืช ืโDrupal.
ืืืืืง ืืจืืฉื FastComments Widget ืืืืข ืืฉืื ืื, ืืืืื ืขื ืืฉืืืืช ืฉืืืจ ืืืืืจืืช ืืืื. ืื ืชืืืื ืืฉืื ืชืืืืืช ืืคื ืืฉืืช ืืื ืขื ืืืืืง ืืืื ืฉืืืืืื'ื ืืืคืืข ืคืขืืืื ืืืืชื ืขืืื.
ืื ืืกื ืืืืื (SSO) 
FastComments ืืฉืชืื ืขื ืืขืจืืช ืืืฉืชืืฉืื ืฉื Drupal ืืจื SSO, ืื ืืชืืืจืืช ืืืืื (single-sign-on). ืืืฉืชืืฉืื ืฉืื ื ืื ืกืื ืืืชืจ ื-Drupal ืฉืื, ืืืืืืื ืืขืืืจ ืืช ืืืืชื ื-FastComments ืืืืืืืืช. ืืื ืืฉืืื ืืช ื ืืกืคืื ืืืฆืืจื, ืืืื ืฆืืจื ืืืจืฆืช ืกื ืืจืื ืจืืฉืื ื.
ืืืืืื ืชืืื ืืฉืืืฉ ืืฆืื SSO, ืื ืงืืขืื ืชืืช Administration > Configuration > Content > FastComments.
ืืื SSO
ืืื SSO. ืืฉืชืืฉืื ืืชืคืจืกืืื ืืืืจืืื ืื ืืืฆืจืื ืืฉืืื FastComments. ืืฉืชืืฉ ืืื ืื ืืืชืจ ืฉืื ืฆืืืืจื ืืื ืฆืจืื ืืงืฉืจ ืชืืืืืช ืืืฉืชืืฉื Drupal.
ืคืฉืื
ืืขืืืจ ืืช ืืฉื, ืืืืืืื ืืชืืื ืช ืืคืจืืคืื ืฉื ืืฉืชืืฉ ื-Drupal ื-FastComments ืืื ืืืืืช ืืฆื ืืฉืจืช. ืืื ืฆืืจื ื-API Secret. ืืชืืื ืืืชืจืื ืคื ืืืืื ืื ืืขืื ืกืืืื ื ืืื.
ืืืืืื (ืืืืืฅ)
ืืฉืชืืฉ ื-HMAC-SHA256 ืืื ืืืืช ืื ืืืืช ืืฉืชืืฉ ืืื FastComments. ืื ืืืฆื ืืจืฆืื ืืฉืืฉ ืื API Secret ืืืืืจ, ืืื ืืืฆื ืืืืื ืฉืืื ืข ืืืืงืจ ืืืชืืืืช ืืืฉืชืืฉ ืืืจ.
ืืืืช ืืืฉืชืืฉ ืืืขืืจืช ื-FastComments ืืื ืคืขื ืฉืืฉืชืืฉ ืฆืืคื ืื ืืฉื ืชืืืืืช. ืืื ืกื ืืจืื ืจืืฉืื ื ืื ืจืฆืืฃ ืฉืฆืจืื ืืจืืฅ.
(ืืืคืฆืืื ืื) ืืืกืฃ ืืช ืืื ืืืื ืฉืื ื-ืืฉืชืืฉืื ืืื ืืืื ืืืช ืืื ืืื ื-ืื ืื ืชืืืืืช ืืื ืืฉืคืจ ืืช ืืืืืืชื ืืืืคืขืื ืืขืงื ืกืืืืกืื ืขืืืจ ืืื ืืื.
ืืืื ืืขืืืง ืืืชืจ ืขื ืืื SSO ืขืืื, ืจืื ืืช ืกืขืืฃ ืโSSO ืืืกืืื ืืืชืืืืช ืืืืฉืืืช.
ืืจืฉืืืช 
ืืชืืกืฃ ืืืกืืฃ ืฉืืืฉ ืืจืฉืืืช ืฉื Drupal ืฉื ืืชื ืืืงืฆืืช ืืคื ืชืคืงืื ืชืืช People > Permissions.
- Administer FastComments - ืืืฉื ืืืืคืก ืืืืืจืืช ืฉื FastComments ืึพ
/admin/config/content/fastcomments. - View FastComments - ื ืืจืฉ ืืื ืืจืืืช ืืช ืืืืื'ื ืืชืืืืืช. ืืื ืืจืฉืื ืื ืืืืืื'ื ืื ืืืืขื.
- Toggle FastComments - ืืืคืฉืจ ืืืฉืชืืฉืื ืืืคืขืื ืื ืืืืืช ืชืืืืืช ืขืืืจ ืื ืืฉืืช ืื ืคืจื ืืืืฆืขืืช ืืืืื'ื ืืฉืื.
ืืืจืืจืช ืืืื, ืจืง ืืฉืชืืฉืื ืฉืืฉ ืืื ืืช ืืืจืฉืื administer site configuration ืืืืืื ืืฉื ืืช ืืช ืืืืจืืช FastComments. ืืขื ืืงื ืืช View FastComments ืืืฉืชืืฉืื ืื ืื ืืืืื ืืืืืืชืื ืื ืืชื ืจืืฆืื ืฉืืืงืจืื ืืจืื ืืช ืืืืืื'ื.
ืจื-ืืฉืื ื 
ืืืืืื ืืขืืืจ ืืืืืืืืช ืืช ืฉืคืช ืืืชืจ ืื ืืืืืช ืฉื Drupal ืืื ืืืืื'ื ืฉื FastComments. ืื ืืชืจ ื-Drupal ืฉืื ืืืืืจ ืืืกืคืจ ืฉืคืืช, ืืืฉืง ืืืขืจืืช ืืืฆื ืืฉืคื ืืชืืืืช ืืื ืฆืืจื ืืืืืจื ื ืืกืคืช.
ืื ืื ืขื ืื ืกืืื ืืืืืื'ืืื: Live Comments, Streaming Chat, Collab Chat, Image Chat, Recent Comments, ื-Top Pages.
ืืืกืื ื ืชืื ืื ืืืืืื ืืืืจืืคื 
ืื ืืฉืืื FastComments ืฉืื ืืืืืกื ื-EU, ืขืืื ืฉืชื ืืืืจืืช ื-Administration > Configuration > Content > FastComments:
- CDN URL -
https://cdn-eu.fastcomments.com - Site URL -
https://eu.fastcomments.com
ืืืื ืื ืืฉืืืฃ ืืช ื-Tenant ID ืื-API Secret ืืชืื ืืื ืืืงืจื ืฉื ื-EU ื-eu.fastcomments.com/auth/my-account/api ืืืงืื ืืื ืืืงืจื ืืกืื ืืจืื ืฉื ื-US. ืื ืืฉืืจ ืืืืืื ืขืืื ืืืืชื ืืืคื.
ืืชืืื ืืืฉืืช 
FastComments ืชืืื ื ืืืืืช ืืืชืื ืืืฉืืช ืื ืฉืืชืืื ืืืชืจ ืฉืื.
ืื ืืจืฆืื ื ืืืืกืืฃ ืขืืฆืื ืืืชืื ืืืฉืืช ืื ืืฉื ืืช ืืืืจืืช, ืขืืื ืืชืืขืื ืืืชืืืืช ืืืืืืจืืช ืฉืื ื ืืื ืืืืื ืืืฆื ืืขืฉืืช ืืืช.
ืืจืืฉืืช 
- Drupal 10 ืื 11
- PHP 8.1 ืื ืืืฉ ืืืชืจ
- ืืฉืืื FastComments
ืืืืืื ืืื ื ืืืจืฉ ืืืืืืื ื ืืกืคืื ื-Drupal ืื ืกืคืจืืืช ืฆื-ืฉืืืฉื. ืืื ืชืืื ืจืง ืืืืืช Drupal (user, field).
ืื ืื ืื ืืืืื <noscript> ืืกืคืง ืชืืืืืช ืืืืฆืืืช ืืฆื ืืฉืจืช ืขืืืจ ืืืงืจืื ืืื JavaScript, ืื ืฉ-Live Comments ื-Streaming Chat ืขืืืื ืคืืขืืื ืืืคืืคื ืื ืฉืืื ืืกืงืจืืคืืื ืืืฉืืชืื.