
์ธ์ด ๐ฐ๐ท ํ๊ตญ์ด
์์ฝ
Drupal ์ค์น
Add Live Commenting to Drupal Sites
๋น ๋ฅธ ์์ 
์ด๊ฒ์ Drupal ์ง์นจ์ "์์ฝ(TL;DR)" ๋ฒ์ ์ ๋๋ค.
composer require drupal/fcom๋ก ๋ชจ๋์ ์ค์นํ๊ฑฐ๋modules/custom/fastcomments/์ ๋ฃ์ผ์ธ์.drush en fastcomments๋ก ํ์ฑํํ๊ฑฐ๋ ๊ด๋ฆฌ UI์/admin/modules์์ ํ์ฑํํ์ธ์.Administration > Configuration > Content > FastComments(/admin/config/content/fastcomments)๋ก ์ด๋ํ์ธ์.- ์ค์ > API/SSO (EU)์์ Tenant ID์ API Secret์ ์ ๋ ฅํ์ธ์.
- ์ํ๋ ์ฝํ
์ธ ์ ํ์
FastCommentsํ๋๋ฅผStructure > Content types > [type] > Manage fields์์ ์ถ๊ฐํ์ธ์.
๋ชจ๋์ drupal.org/project/fcom์ ๊ฒ์๋์ด ์์ต๋๋ค.
์ค์น 
FastComments Drupal ๋ชจ๋์ Drupal์ ๊ธฐ๋ณธ ๋๊ธ ๊ธฐ๋ฅ์ ๋น ๋ฅด๊ณ ์ค์๊ฐ ๋๊ธ ์์คํ ์ผ๋ก ๋์ฒดํฉ๋๋ค. ์ด ๋ชจ๋์ drupal.org์ ๊ฒ์๋จ์ด๋ฉฐ Drupal 10 ๋ฐ 11์์ ์๋ํฉ๋๋ค.
์ค์น ๋ฐฉ๋ฒ์ ๋ ๊ฐ์ง๊ฐ ์์ต๋๋ค.
Composer๋ก ์ค์น
composer require drupal/fcom
drush en fastcomments์๋ ์ค์น
Download the module from drupal.org/project/fcom and place it in your site's modules/custom/fastcomments/ directory. Then enable it with drush en fastcomments, or from the admin UI at Extend (/admin/modules).
์ฐธ๊ณ ! ์ด ๋ชจ๋์ Drupal ์ฝ์ด (user and field). ๋ค๋ฅธ Drupal ๋ชจ๋์ด๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ ํ์ํ์ง ์์ต๋๋ค.
๋ชจ๋์ด ํ์ฑํ๋๋ฉด Configuration ์น์
์ผ๋ก ์ด๋ํ์ฌ Tenant ID์ API Secret์ ์ค์ ํ์ธ์.
๊ตฌ์ฑ 
All settings live under Administration > Configuration > Content > FastComments (/admin/config/content/fastcomments).
ํ์
- Tenant ID - ๊ทํ์ FastComments Tenant ID. ๋ค์ ์์น์์ ์ฐพ์ ์ ์์ต๋๋ค: ์ค์ > API/SSO (EU).
- API Secret - Secure SSO, ์นํ ๊ฒ์ฆ, ํ์ด์ง ๋๊ธฐํ์ ํ์ํฉ๋๋ค. ์ค์ > API/SSO (EU)์์ ์ฐพ์ ์ ์์ต๋๋ค.
๋๊ธ ์คํ์ผ
์ฌ์ดํธ์์ ์ฌ๋๋ค์ด ๋ํํ๋ ๋ฐฉ์์ ๋ง๋ ์์ ฏ์ ์ ํํ์ธ์.
- Live Comments - ์ค์๊ฐ ์ค๋ ๋ํ ๋๊ธ์ ๋๋ค.
- Streaming Chat - ๋ผ์ด๋ธ ์ฑํ ์ธํฐํ์ด์ค๋ก ์ด๋ฒคํธ ๋ฐ ๋ผ์ด๋ธ์คํธ๋ฆผ์ ์ ํฉํฉ๋๋ค.
- Collab Chat - ๋ฉ์ธ ์ฝํ ์ธ ์์ญ์์ ํ ์คํธ ์ ํ ์ฃผ์ ๊ธฐ๋ฅ์ ๋๋ค. ๋ฐฉ๋ฌธ์๊ฐ ํ ์คํธ๋ฅผ ๊ฐ์กฐ ํ์ํ๊ณ ๋งฅ๋ฝ์์ ํ ๋ก ์ ์์ํฉ๋๋ค.
- Collab Chat + Comments - ๋์ผํ ํ์ด์ง์์ collab chat๊ณผ ํ์ค ๋๊ธ์ ๋ชจ๋ ํ์ํฉ๋๋ค.
SSO Mode
- 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 ๋ฐ์ดํฐ ๋ ์ง๋์์ ๊ฒฝ์ฐ 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)์ ํ์ฌ ์ํฐํฐ๋ฅผ ์๋์ผ๋ก ๊ฐ์งํ๋ฉฐ, ์ํฐํฐ๊ฐ ์๋ ํ์ด์ง์์๋ ๊ฒฝ๋ก ๊ธฐ๋ฐ ์๋ณ์๋ก ๋์ฒด๋ฉ๋๋ค. ์ฆ, ์ถ๊ฐ ์ค์ ์์ด taxonomy ํ์ด์ง, views, ์ปค์คํ ๋ผ์ฐํธ์์ ์๋ํฉ๋๋ค.
์ฝํ
์ธ ์ ํ ํ๋ 
๋๋ถ๋ถ์ ์ฌ์ดํธ์์ ๋๊ธ์ ์ถ๊ฐํ๋ ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ์ FastComments ํ๋๋ฅผ ์ฝํ
์ธ ์ ํ์ ์ถ๊ฐํ๋ ๊ฒ์
๋๋ค. Structure > Content types > [type] > Manage fields๋ก ์ด๋ํ์ฌ ํ๋๋ฅผ ์ถ๊ฐํ์ธ์.
Each entity that has the field gets:
- ํธ์ง์๊ฐ ๊ฐ ์ํฐํฐ์์ ๋๊ธ ๊ธฐ๋ฅ์ ์ผ๊ฑฐ๋ ๋ ์ ์๋ ์ํ ํ ๊ธ.
- ์ ํ์ ์ฌ์ฉ์ ์ง์ ์๋ณ์๋ก, Drupal ์ํฐํฐ ๊ฒฝ๋ก์ ๋ฌถ์ฌ ์์ง ์์ ์์ ์ ์ธ ID๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
The main FastComments Widget block knows about this field, and will skip entities that already have it attached. That way you can mix per-entity comments with the block without seeing the widget twice on the same page.
์ฑ๊ธ ์ฌ์ธ์จ(SSO) 
FastComments๋ SSO๋ฅผ ํตํด Drupal์ ์ฌ์ฉ์ ์์คํ ๊ณผ ํตํฉ๋ฉ๋๋ค. ์ฌ์ฉ์๋ Drupal ์ฌ์ดํธ์ ๋ก๊ทธ์ธํ๋ฉด ๋ชจ๋์ด ์๋์ผ๋ก ๊ทธ๋ค์ ์ ์์ FastComments๋ก ์ ๋ฌํฉ๋๋ค. ์ถ๊ฐ ๊ณ์ ์ ๋ง๋ค ํ์๋, ์ด๊ธฐ ๋๊ธฐํ๋ฅผ ์คํํ ํ์๋ ์์ต๋๋ค.
The module supports three SSO modes, set under Administration > Configuration > Content > FastComments.
์์
SSO ์์. ์ฌ์ฉ์๋ ๊ฒ์คํธ๋ก ๋๊ธ์ ๋ฌ๊ฑฐ๋ FastComments ๊ณ์ ์ ์์ฑํฉ๋๋ค. ์ฌ์ดํธ๊ฐ ๊ณต๊ฐ์ ์ด๊ณ ๋๊ธ์ Drupal ์ฌ์ฉ์์ ์ฐ๋ํ ํ์๊ฐ ์์ ๋ ์ฌ์ฉํ์ธ์.
๊ฐ๋จ
์๋ฒ ์ธก ๊ฒ์ฆ ์์ด Drupal ์ฌ์ฉ์์ ์ด๋ฆ, ์ด๋ฉ์ผ, ์๋ฐํ๋ฅผ FastComments๋ก ์ ๋ฌํฉ๋๋ค. API Secret์ด ํ์ํ์ง ์์ต๋๋ค. ๋ด๋ถ์ฉ์ด๋ ์ํ์ด ๋ฎ์ ์ฌ์ดํธ์ ์ ํฉํฉ๋๋ค.
๋ณด์ (๊ถ์ฅ)
HMAC-SHA256์ ์ฌ์ฉํ์ฌ ๊ฐ ์ฌ์ฉ์์ ์ ์์ FastComments์ ํจ๊ป ํ์ธํฉ๋๋ค. API Secret์ด ๊ตฌ์ฑ๋์ด ์์ ๋ ์ด ๋ชจ๋๋ฅผ ์ฌ์ฉํ๋ฉด ๋๋ฉฐ, ๋ฐฉ๋ฌธ์๊ฐ ๋ค๋ฅธ ์ฌ์ฉ์๋ฅผ ์ฌ์นญํ๋ ๊ฒ์ ๋ฐฉ์งํ๋ ์ ์ผํ ๋ชจ๋์ ๋๋ค.
์ฌ์ฉ์๊ฐ ๋๊ธ ์ค๋ ๋๋ฅผ ๋ณผ ๋๋ง๋ค ์ฌ์ฉ์ ์ ์์ด FastComments๋ก ์ ๋ฌ๋ฉ๋๋ค. ์คํํด์ผ ํ๋ ์ด๊ธฐ ๋๊ธฐํ๋ ์ง์์ ๋๊ธฐํ๊ฐ ์์ต๋๋ค.
(Optional) ๊ด๋ฆฌ์ ๊ณ์ ์ Users & Administrators์ ์ถ๊ฐํ๊ณ ์ค์ฌ์๋ค์ Comment Moderators์ ์ถ๊ฐํ๋ฉด ์ฌ์ฉ์ฑ ํฅ์๊ณผ ์ค์ฌ์ ํต๊ณ ์ถ์ ํ์ฑํ์ ๋์์ด ๋ฉ๋๋ค.
SSO ์๋ ๋ฐฉ์์ ๋ํ ์์ธํ ๋ด์ฉ์ ์ปค์คํฐ๋ง์ด์ ์ด์ ๋ฌธ์์ SSO ์น์ ์ ์ฐธ์กฐํ์ธ์.
๊ถํ 
์ด ๋ชจ๋์ People > Permissions์์ ์ญํ ๋ณ๋ก ํ ๋นํ ์ ์๋ ์ธ ๊ฐ์ง Drupal ๊ถํ์ ์ถ๊ฐํฉ๋๋ค.
- Administer FastComments -
/admin/config/content/fastcomments์ ์๋ FastComments ์ค์ ์์์ ๋ํ ์ก์ธ์ค. - View FastComments - ๋๊ธ ์์ ฏ์ ๋ณด๋ ค๋ฉด ํ์ํฉ๋๋ค. ์ด ๊ถํ์ด ์์ผ๋ฉด ์์ ฏ์ด ๋ ๋๋ง๋์ง ์์ต๋๋ค.
- Toggle FastComments - ํ๋ ์์ ฏ์ ์ฌ์ฉํ์ฌ ์ฌ์ฉ์๊ฐ ์ํฐํฐ๋ณ๋ก ๋๊ธ์ ํ์ฑํํ๊ฑฐ๋ ๋นํ์ฑํํ ์ ์๋๋ก ํ์ฉํฉ๋๋ค.
๊ธฐ๋ณธ์ ์ผ๋ก administer site configuration ๊ถํ์ ๊ฐ์ง ์ฌ์ฉ์๋ง FastComments ์ค์ ์ ๋ณ๊ฒฝํ ์ ์์ต๋๋ค. ๋ฐฉ๋ฌธ์๊ฐ ์์ ฏ์ ๋ณด๊ฒ ํ๋ ค๋ฉด ์ต๋ช
์ฌ์ฉ์ ๋ฐ ์ธ์ฆ๋ ์ฌ์ฉ์์๊ฒ View FastComments ๊ถํ์ ๋ถ์ฌํ์ธ์.
๋ค๊ตญ์ด 
์ด ๋ชจ๋์ ํ์ฌ Drupal ์ฌ์ดํธ์ ์ธ์ด๋ฅผ ๋ชจ๋ FastComments ์์ ฏ์ ์๋์ผ๋ก ์ ๋ฌํฉ๋๋ค. Drupal ์ฌ์ดํธ๊ฐ ๋ค๊ตญ์ด๋ก ๊ตฌ์ฑ๋ ๊ฒฝ์ฐ, ๋๊ธ UI๋ ์ถ๊ฐ ๊ตฌ์ฑ ์์ด ์ผ์นํ๋ ์ธ์ด๋ก ๋ ๋๋ง๋ฉ๋๋ค.
์ด๊ฒ์ ๋ชจ๋ ์์ ฏ ์ ํ์ ์ ์ฉ๋ฉ๋๋ค: Live Comments, Streaming Chat, Collab Chat, Image Chat, Recent Comments, ๊ทธ๋ฆฌ๊ณ Top Pages.
EU ๋ฐ์ดํฐ ์ ์ฅ ์์น 
If your FastComments account is hosted in the EU, update two settings at Administration > Configuration > Content > FastComments:
- CDN URL -
https://cdn-eu.fastcomments.com - Site URL -
https://eu.fastcomments.com
You'll also want to pull your Tenant ID and API Secret from the EU dashboard at eu.fastcomments.com/auth/my-account/api instead of the default US dashboard. Everything else in the module works the same.
๋ง์ถคํ 
FastComments๋ ๊ทํ์ ์ฌ์ดํธ์ ๋ง๊ฒ ๋ง์ถคํํ ์ ์๋๋ก ์ค๊ณ๋์์ต๋๋ค.
๋ง์ถค ์คํ์ผ์ ์ถ๊ฐํ๊ฑฐ๋ ๊ตฌ์ฑ์ ์กฐ์ ํ๋ ค๋ฉด, ๋ง์ถค ์ค์ ๋ฌธ์๋ฅผ ํ์ธํ์ฌ ๋ฐฉ๋ฒ์ ์์๋ณด์ธ์.
์๊ตฌ ์ฌํญ 
- Drupal 10 ๋๋ 11
- PHP 8.1 ์ด์
- FastComments ๊ณ์
์ด ๋ชจ๋์ ๋ค๋ฅธ Drupal ๋ชจ๋์ด๋ ์๋ํํฐ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ํ์๋ก ํ์ง ์์ต๋๋ค. ์ค์ง Drupal ์ฝ์ด (user, field)์๋ง ์์กดํฉ๋๋ค.
์๋ฐ์คํฌ๋ฆฝํธ๊ฐ ์๋ ๋ฐฉ๋ฌธ์๋ฅผ ์ํด ์๋ฒ์์ ๋ ๋๋ง๋ ๋๊ธ์ ์ ๊ณตํ๋ <noscript> ํด๋ฐฑ์ด ์์ด Live Comments์ Streaming Chat์ด ์คํฌ๋ฆฝํธ๊ฐ ๋นํ์ฑํ๋ ๋ธ๋ผ์ฐ์ ์์๋ ๊ณ์ ์๋ํฉ๋๋ค.