FastComments.com


FastComments ืžืกืคืงืช ื•ื•ื™ื“ื’'ื˜ื™ื ืงืœื™ื ื•ืขืฆืžืื™ื™ื ืœืกืคื™ืจืช ืชื’ื•ื‘ื•ืช ืฉื™ื›ื•ืœื™ื ืœื”ืฆื™ื’ ืืช ืžืกืคืจ ื”ืชื’ื•ื‘ื•ืช ืœื“ืคื™ื ืื• ืœืคื•ืกื˜ื™ื ืกืคืฆื™ืคื™ื™ื. ื•ื•ื™ื“ื’'ื˜ื™ื ืืœื” ื ืคืจื“ื™ื ืžื”ื•ื•ื™ื“ื’'ื˜ ื”ืจืืฉื™ ืฉืœ ื”ื”ืขืจื•ืช ื•ืžื™ื•ืขื“ื™ื ืœืฉื™ืžื•ืฉ ื‘ื›ืœ ืžืงื•ื ืฉื‘ื• ื‘ืจืฆื•ื ืš ืœื”ืฆื™ื’ ืกืคื™ืจืช ืชื’ื•ื‘ื•ืช ืœืœื ืžืžืฉืง ื”ื”ืขืจื•ืช ื”ืžืœื.

ื™ืฉื ื ืฉื ื™ ืกื•ื’ื™ื ืฉืœ ื•ื•ื™ื“ื’'ื˜ื™ื ืœืกืคื™ืจืช ืชื’ื•ื‘ื•ืช ื–ืžื™ื ื™ื:

  1. ื•ื•ื™ื“ื’'ื˜ ืกืคื™ืจืช ืชื’ื•ื‘ื•ืช - ืœื”ืฆื’ืช ืกืคื™ืจืช ื”ืชื’ื•ื‘ื•ืช ืฉืœ ื“ืฃ ื™ื—ื™ื“
  2. ื•ื•ื™ื“ื’'ื˜ ืกืคื™ืจืช ืชื’ื•ื‘ื•ืช ืžืจื•ื‘ื” - ืœื”ืฆื’ื” ื™ืขื™ืœื” ืฉืœ ืกืคื™ืจื•ืช ืชื’ื•ื‘ื•ืช ืขื‘ื•ืจ ืžืกืคืจ ื“ืคื™ื ื‘ืื•ืชื• ื“ืฃ

ืžืืžืจ ื–ื” ืžื›ืกื” ืืช ื”ื•ื•ื™ื“ื’'ื˜ื™ื ืฉืœ VanillaJS. ื’ื ื”ืกืคืจื™ื•ืช ืฉืœื ื• ืœ-React/Angular/ื•ื›ื“ื•ืžื” ื›ื•ืœืœื•ืช ื•ื•ื™ื“ื’'ื˜ื™ื ืžืฉืœื”ืŸ.


ื”ืชืงื ืช ื•ื•ื™ื“ื’'ื˜ ืกืคื™ืจืช ืชื’ื•ื‘ื•ืช Internal Link

ื•ื™ื“ื’'ื˜ ืกืคื™ืจืช ื”ืชื’ื•ื‘ื•ืช ืžืขื•ืฆื‘ ืœื”ืฆื’ืช ืžืกืคืจ ื”ืชื’ื•ื‘ื•ืช ืฉืœ ื“ืฃ ื™ื—ื™ื“. ื”ื•ื ืงืœ ืžืฉืงืœ ื•ืžืกืคืง ืขื“ื›ื•ื ื™ื ื‘ื–ืžืŸ ืืžืช ืื ืžื•ื’ื“ืจ.

ื”ืชืงื ื” ื‘ืกื™ืกื™ืช

Comment Count Widget Installation
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count"></div>
4<script>
5 window.FastCommentsCommentCount(document.getElementById('comment-count'), {
6 tenantId: 'demo'
7 });
8</script>
9

ืืคืฉืจื•ื™ื•ืช ืชืฆื•ืจื”

ื”ืคื•ื ืงืฆื™ื” FastCommentsCommentCount ืžืงื‘ืœืช ืืช ืืคืฉืจื•ื™ื•ืช ื”ืชืฆื•ืจื” ื”ื‘ืื•ืช:

  • tenantId (ื ื“ืจืฉ): ืžื–ื”ื” ื”ื“ื™ื™ืจ ืฉืœืš ื‘-FastComments
  • urlId (ืื•ืคืฆื™ื•ื ืœื™): ืžื–ื”ื” ื”ื“ืฃ. ื‘ืจื™ืจืช ืžื—ื“ืœ ื”ื™ื window.location.href ืื ืœื ืฆื•ื™ืŸ
  • numberOnly (ืื•ืคืฆื™ื•ื ืœื™): ืื true, ืžืฆื™ื’ ืจืง ืืช ื”ืžืกืคืจ ืœืœื ื˜ืงืกื˜. ื‘ืจื™ืจืช ืžื—ื“ืœ ื”ื™ื false
  • isLive (ืื•ืคืฆื™ื•ื ืœื™): ืื true, ื”ืกืคื™ืจื” ืชืชืขื“ื›ืŸ ืื•ื˜ื•ืžื˜ื™ืช. ื‘ืจื™ืจืช ืžื—ื“ืœ ื”ื™ื false

ื“ื•ื’ืžืื•ืช ืžืชืงื“ืžื•ืช

URL ID ืžื•ืชืื ืื™ืฉื™ืช

Comment Count with Custom URL ID
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count-custom"></div>
4<script>
5 window.FastCommentsCommentCount(document.getElementById('comment-count-custom'), {
6 tenantId: 'demo',
7 urlId: 'my-custom-page-id'
8 });
9</script>
10

ื”ืฆื’ืช ืžืกืคืจ ื‘ืœื‘ื“

Comment Count Number Only
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count-number"></div>
4<script>
5 window.FastCommentsCommentCount(document.getElementById('comment-count-number'), {
6 tenantId: 'demo',
7 numberOnly: true
8 });
9</script>
10

ืขื“ื›ื•ื ื™ื ื—ื™ื™ื

Live Comment Count Updates
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count-live"></div>
4<script>
5 window.FastCommentsCommentCount(document.getElementById('comment-count-live'), {
6 tenantId: 'demo',
7 isLive: true
8 });
9</script>
10

ืฉื™ื˜ื•ืช ื”ื•ื™ื“ื’'ื˜

ื”ื•ื™ื“ื’'ื˜ ืžื—ื–ื™ืจ ืื•ื‘ื™ื™ืงื˜ ืขื ื”ืฉื™ื˜ื•ืช ื”ื‘ืื•ืช:

  • destroy(): ืžืกื™ืจ ืืช ื”ื•ื™ื“ื’'ื˜ ื•ืžื ืงื” ืืช ื›ืœ ื”ื˜ื™ื™ืžืจื™ื
  • update(config): ืžืขื“ื›ืŸ ืืช ื”ื•ื™ื“ื’'ื˜ ืขื ืชืฆื•ืจื” ื—ื“ืฉื”

ื“ื•ื’ืžืช ืฉื™ืžื•ืฉ

Widget Methods Example
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
3<div id="comment-count-methods"></div>
4<script>
5 const widget = window.FastCommentsCommentCount(document.getElementById('comment-count-methods'), {
6 tenantId: 'demo'
7 });
8
9 // Update the widget to show a different page's count
10 setTimeout(() => {
11 widget.update({
12 tenantId: 'demo',
13 urlId: 'different-page-id'
14 });
15 }, 5000);
16
17 // Destroy the widget after 10 seconds
18 setTimeout(() => {
19 widget.destroy();
20 }, 10000);
21</script>
22

ืขื™ืฆื•ื‘

ื”ื•ื™ื“ื’'ื˜ ืžืจื ื“ืจ HTML ืคืฉื•ื˜ ืขื ืกืคื™ืจืช ื”ืชื’ื•ื‘ื•ืช ื•ืžื’ื™ืข ืขื ืขื™ืฆื•ื‘ ืžื™ื ื™ืžืœื™. ืืชื” ื™ื›ื•ืœ ืœื”ืชืื™ื ืื™ืฉื™ืช ืืช ื”ืžืจืื” ืขื CSS:

Custom Styling
Copy CopyRun External Link
1
2<style>
3 .comment-count-styled {
4 background: #f0f0f0;
5 padding: 5px 10px;
6 border-radius: 15px;
7 font-size: 14px;
8 color: #666;
9 display: inline-block;
10 }
11</style>
12<script src="https://cdn.fastcomments.com/js/widget-comment-count.min.js"></script>
13<div id="comment-count-styled" class="comment-count-styled"></div>
14<script>
15 window.FastCommentsCommentCount(document.getElementById('comment-count-styled'), {
16 tenantId: 'demo'
17 });
18</script>
19

ื”ืชืงื ืช ืืฆื•ื•ื” ืฉืœ ื•ื•ื™ื“ื’'ื˜ื™ื ืœืกืคื™ืจืช ืชื’ื•ื‘ื•ืช Internal Link

ื•ื™ื“ื’'ื˜ ืกืคื™ืจืช ื”ืชื’ื•ื‘ื•ืช ื”ืžืจื•ื‘ื•ืช ืžืขื•ืฆื‘ ืœื”ืฆื’ื” ื™ืขื™ืœื” ืฉืœ ืกืคื™ืจื•ืช ืชื’ื•ื‘ื•ืช ืขื‘ื•ืจ ื“ืคื™ื ืžืจื•ื‘ื™ื ื‘ืื•ืชื• ื“ืฃ. ื‘ืžืงื•ื ืœื‘ืฆืข ืงืจื™ืื•ืช API ื‘ื•ื“ื“ื•ืช ืœื›ืœ ืกืคื™ืจืช ืชื’ื•ื‘ื•ืช, ื•ื™ื“ื’'ื˜ ื–ื” ืžืงื‘ืฅ ื‘ืงืฉื•ืช ืœื‘ื™ืฆื•ืขื™ื ืื•ืคื˜ื™ืžืœื™ื™ื.

ื”ืชืงื ื” ื‘ืกื™ืกื™ืช

Bulk Comment Count Widget Installation
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/embed-widget-comment-count-bulk.min.js"></script>
3
4<!-- Multiple elements with comment counts -->
5<div class="fast-comments-count" data-fast-comments-url-id="page-1"></div>
6<div class="fast-comments-count" data-fast-comments-url-id="page-2"></div>
7<div class="fast-comments-count" data-fast-comments-url-id="page-3"></div>
8
9<script>
10 window.FastCommentsBulkCountConfig = {
11 tenantId: 'demo'
12 };
13</script>
14

ืื™ืš ื–ื” ืขื•ื‘ื“

ื”ื•ื™ื“ื’'ื˜ ื”ืžืจื•ื‘ื” ืขื•ื‘ื“ ืขืœ ื™ื“ื™:

  1. ืกืจื™ืงืช ื”ื“ืฃ ืœืื™ืชื•ืจ ืืœืžื ื˜ื™ื ืขื ื”ืžื—ืœืงื” fast-comments-count
  2. ืงืจื™ืืช ื”ืชื›ื•ื ื” data-fast-comments-url-id ืžื›ืœ ืืœืžื ื˜
  3. ืงื™ื‘ื•ืฅ ื‘ืงืฉื•ืช API ืœืฉืœื™ืคืช ืกืคื™ืจื•ืช ืชื’ื•ื‘ื•ืช ืžืจื•ื‘ื•ืช ื‘ื™ืขื™ืœื•ืช
  4. ืขื“ื›ื•ืŸ ื›ืœ ืืœืžื ื˜ ืขื ืกืคื™ืจืช ื”ืชื’ื•ื‘ื•ืช ื”ืžืชืื™ืžื”

ืืคืฉืจื•ื™ื•ืช ืชืฆื•ืจื”

ื”ืคื•ื ืงืฆื™ื” FastCommentsCommentCountBulk ืžืงื‘ืœืช ืืช ืืคืฉืจื•ื™ื•ืช ื”ืชืฆื•ืจื” ื”ื‘ืื•ืช:

  • tenantId (ื ื“ืจืฉ): ืžื–ื”ื” ื”ื“ื™ื™ืจ ืฉืœืš ื‘-FastComments
  • apiHost (ืื•ืคืฆื™ื•ื ืœื™): ืžืืจื— API ืžื•ืชืื ืื™ืฉื™ืช ืื ืืชื” ืžืฉืชืžืฉ ื‘ืžื•ืคืข ืžืชืืจื— ืขืฆืžืื™ืช

ื“ื•ื’ืžื” ืžื”ืขื•ืœื ื”ืืžื™ืชื™

ื”ื ื” ื“ื•ื’ืžื” ืžืขืฉื™ืช ื”ืžืจืื” ื›ื™ืฆื“ ืชื•ื›ืœ ืœื”ืฉืชืžืฉ ื‘ื•ื™ื“ื’'ื˜ ื”ืžืจื•ื‘ื” ื‘ืจืฉื™ืžืช ืคื•ืกื˜ื™ื ื‘ื‘ืœื•ื’:

Blog Post Listing with Comment Counts
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/embed-widget-comment-count-bulk.min.js"></script>
3
4<style>
5 .blog-post {
6 border: 1px solid #ddd;
7 margin: 10px 0;
8 padding: 15px;
9 border-radius: 5px;
10 }
11 .post-meta {
12 color: #666;
13 font-size: 14px;
14 margin-top: 10px;
15 }
16 .comment-count {
17 background: #e7f3ff;
18 padding: 2px 8px;
19 border-radius: 12px;
20 font-size: 12px;
21 display: inline-block;
22 }
23</style>
24
25<div class="blog-post">
26 <h3>How to Install FastComments</h3>
27 <p>Learn how to add FastComments to your website in just a few minutes...</p>
28 <div class="post-meta">
29 Published: March 15, 2024 |
30 <span class="fast-comments-count comment-count" data-fast-comments-url-id="how-to-install-fastcomments"></span>
31 </div>
32</div>
33
34<div class="blog-post">
35 <h3>Advanced FastComments Configuration</h3>
36 <p>Dive deep into the advanced configuration options for FastComments...</p>
37 <div class="post-meta">
38 Published: March 10, 2024 |
39 <span class="fast-comments-count comment-count" data-fast-comments-url-id="advanced-fastcomments-config"></span>
40 </div>
41</div>
42
43<div class="blog-post">
44 <h3>FastComments vs Other Solutions</h3>
45 <p>See how FastComments compares to other commenting solutions...</p>
46 <div class="post-meta">
47 Published: March 5, 2024 |
48 <span class="fast-comments-count comment-count" data-fast-comments-url-id="fastcomments-comparison"></span>
49 </div>
50</div>
51
52<script>
53 window.FastCommentsBulkCountConfig = {
54 tenantId: 'demo'
55 };
56</script>
57

ืฉื™ืงื•ืœื™ ื‘ื™ืฆื•ืขื™ื

ื”ื•ื™ื“ื’'ื˜ ื”ืžืจื•ื‘ื” ืžื™ื™ืขืœ ืื•ื˜ื•ืžื˜ื™ืช ืืช ื”ื‘ื™ืฆื•ืขื™ื ืขืœ ื™ื“ื™:

  • ืงื™ื‘ื•ืฅ ื‘ืงืฉื•ืช: ืกืคื™ืจื•ืช ืชื’ื•ื‘ื•ืช ืžืจื•ื‘ื•ืช ื ืฉืœืคื•ืช ื‘ืงืจื™ืืช API ื™ื—ื™ื“ื”
  • ืžื’ื‘ืœื•ืช ื’ื•ื“ืœ ื‘ืงืฉื”: ื‘ืงืฉื•ืช ืžืชืคืฆืœื•ืช ืื•ื˜ื•ืžื˜ื™ืช ืื ืจืฉื™ืžืช ื”-URL ื”ื•ืคื›ืช ื’ื“ื•ืœื” ืžื“ื™ (ืžืขืœ 1,000 ืชื•ื•ื™ื)
  • ื‘ื™ื˜ื•ืœ ื›ืคื™ืœื•ื™ื•ืช: ืืœืžื ื˜ื™ื ืžืจื•ื‘ื™ื ืขื ืื•ืชื• data-fast-comments-url-id ื—ื•ืœืงื™ื ืืช ืื•ืชื” ืกืคื™ืจื”

ืืœืžื ื˜ื™ื ืžืจื•ื‘ื™ื ืขื ืื•ืชื• URL ID

ืืชื” ื™ื›ื•ืœ ืœืงื‘ืœ ืืœืžื ื˜ื™ื ืžืจื•ื‘ื™ื ื‘ื“ืฃ ืขื ืื•ืชื• data-fast-comments-url-id. ื›ื•ืœื ื™ืขื•ื“ื›ื ื• ืขื ืื•ืชื” ืกืคื™ืจื”:

Multiple Elements Same URL ID
Copy CopyRun External Link
1
2<script src="https://cdn.fastcomments.com/js/embed-widget-comment-count-bulk.min.js"></script>
3
4<style>
5 .count-example {
6 margin: 10px 0;
7 padding: 10px;
8 background: #f9f9f9;
9 border-radius: 5px;
10 }
11</style>
12
13<div class="count-example">
14 Header Count: <span class="fast-comments-count" data-fast-comments-url-id="shared-article"></span>
15</div>
16
17<div class="count-example">
18 Sidebar Count: <span class="fast-comments-count" data-fast-comments-url-id="shared-article"></span>
19</div>
20
21<div class="count-example">
22 Footer Count: <span class="fast-comments-count" data-fast-comments-url-id="shared-article"></span>
23</div>
24
25<script>
26 window.FastCommentsBulkCountConfig = {
27 tenantId: 'demo'
28 };
29</script>
30

ืœื•ืงืœื™ื–ืฆื™ื”

ื”ื•ื™ื“ื’'ื˜ ื”ืžืจื•ื‘ื” ืžืขืฆื‘ ืื•ื˜ื•ืžื˜ื™ืช ืกืคื™ืจื•ืช ืชื’ื•ื‘ื•ืช ื‘ื”ืชื‘ืกืก ืขืœ ื”ื’ื“ืจื•ืช ื”ืฉืคื” ืฉืœืš ื‘-FastComments. ื”ื•ื ืžืกืคืง ื˜ืงืกื˜ ืžืชืื™ื ืขื‘ื•ืจ:

  • ืืคืก ืชื’ื•ื‘ื•ืช
  • ืชื’ื•ื‘ื” ืื—ืช
  • ืชื’ื•ื‘ื•ืช ืžืจื•ื‘ื•ืช

ืžืชื™ ืœื”ืฉืชืžืฉ ื‘ื•ื™ื“ื’'ื˜ ืžืจื•ื‘ื” ืœืขื•ืžืช ื•ื™ื“ื’'ื˜ ื‘ื•ื“ื“

ื”ืฉืชืžืฉ ื‘ื•ื™ื“ื’'ื˜ ื”ืžืจื•ื‘ื” ื›ืืฉืจ:

  • ื™ืฉ ืœืš ืกืคื™ืจื•ืช ืชื’ื•ื‘ื•ืช ืžืจื•ื‘ื•ืช ื‘ืื•ืชื• ื“ืฃ
  • ืืชื” ืžืฆื™ื’ ืจืฉื™ืžืช ืคื•ืกื˜ื™ื/ืžืืžืจื™ื ืขื ืกืคื™ืจื•ืช ืชื’ื•ื‘ื•ืช
  • ื”ื‘ื™ืฆื•ืขื™ื ื—ืฉื•ื‘ื™ื (ืžืคื—ื™ืช ืงืจื™ืื•ืช API)

ื”ืฉืชืžืฉ ื‘ื•ื™ื“ื’'ื˜ ื”ื‘ื•ื“ื“ ื›ืืฉืจ:

  • ืืชื” ืฆืจื™ืš ืจืง ืกืคื™ืจืช ืชื’ื•ื‘ื•ืช ืื—ืช ื‘ื“ืฃ
  • ืืชื” ืฆืจื™ืš ืขื“ื›ื•ื ื™ื ื—ื™ื™ื (ื”ื•ื™ื“ื’'ื˜ ื”ื‘ื•ื“ื“ ืชื•ืžืš ื‘ืขื“ื›ื•ื ื™ื ื‘ื–ืžืŸ ืืžืช)
  • ืืชื” ืจื•ืฆื” ื™ื•ืชืจ ืฉืœื™ื˜ื” ืขืœ ื”ืชื ื”ื’ื•ืช ื”ื•ื™ื“ื’'ื˜ ื”ื‘ื•ื“ื“

ื•ื•ื™ื“ื’'ื˜ื™ื ืฉืœ FastComments ืœืกืคื™ืจืช ืชื’ื•ื‘ื•ืช ืžืกืคืงื™ื ื“ืจืš ืคืฉื•ื˜ื” ื•ื™ืขื™ืœื” ืœื”ืฆื’ืช ืกืคื™ืจื•ืช ืชื’ื•ื‘ื•ืช ื‘ืจื—ื‘ื™ ื”ืืชืจ ืฉืœืš.

ืื ื• ืžืงื•ื•ื™ื ืฉืžืฆืืชื ืืช ื”ืชื™ืขื•ื“ ื”ื–ื” ืžื•ืขื™ืœ.