FastComments.com

Add Comments With Memberstack


ืขื FastComments, ื ื™ืชืŸ ืœื”ื’ื“ื™ืจ ืžืขืจื›ืช ืชื’ื•ื‘ื•ืช ื‘ืœืขื“ื™ืช ืœื—ื‘ืจื™ื ื‘ืœื‘ื“ ื‘ืฉื™ืœื•ื‘ ืขื Memberstack!


ื”ืงื•ื“ Internal Link

ืื ื—ื ื• ื™ื›ื•ืœื™ื ืœื—ื‘ืจ ื‘ืงืœื•ืช ืืช FastComments ืขื Memberstack ื‘ืืžืฆืขื•ืช ืงื˜ืข ืงื•ื“ ืงื˜ืŸ:

FastComments Memberstack Snippet
Copy Copy
1
2<script src="https://cdn.fastcomments.com/js/embed-v2.min.js"></script>
3<div id="fastcomments-widget"></div>
4<script>
5 window.$memberstackDom.getCurrentMember().then(({data: member}) => {
6 if (member) {
7 FastCommentsUI(document.getElementById('fastcomments-widget'), {
8 tenantId: "demo",
9 urlId: window.location.pathname,
10 simpleSSO: {
11 username: member.customFields.name || member.auth.email.replace(/@.+/, ''),
12 email: member.auth.email,
13 avatar: member.customFields.avatar
14 }
15 });
16 } else {
17 FastCommentsUI(document.getElementById('fastcomments-widget'), {
18 tenantId: "demo",
19 urlId: window.location.pathname,
20 simpleSSO: null
21 });
22 }
23 })
24</script>
25

ื›ืืฉืจ ื”ืžืฉืชืžืฉ ืžื‘ืงืจ ื‘ืืชืจ ืื• ื‘ืืคืœื™ืงืฆื™ื” ืฉืœืš ื‘ื–ืžืŸ ืฉื”ื•ื ืžื—ื•ื‘ืจ ื“ืจืš Memberstack, ื”ื•ื ื™ืชื—ื‘ืจ ืื•ื˜ื•ืžื˜ื™ืช ืœ-FastComments ื•ื”ืชื’ื•ื‘ื•ืช ืฉืœื• ื™ืกื•ืžื ื• ื›-Verified.

ื”ื ื’ื ื™ื•ื›ืœื• ืœื”ื’ื™ื‘ ืขืœ ื™ื“ื™ ื”ืฉืืจืช ืฉืžื ื•ืื™ืžื™ื™ืœ ืฉืœื”ื, ืื ื”ื ืœื ืžื—ื•ื‘ืจื™ื.

ืชื’ื•ื‘ื•ืช ืœื—ื‘ืจื™ื ื‘ืœื‘ื“

ืื ืชืจืฆื• ืชื’ื•ื‘ื•ืช ืœื—ื‘ืจื™ื ื‘ืœื‘ื“, ื ืกื• ืืช ืงื˜ืข ื”ืงื•ื“ ื”ื‘ื, ืื‘ืœ ืฉื ื• ืืช https://example.com/login ืœืžืงื•ื ืฉืืœื™ื• ืชืจืฆื• ืฉื”ืžืฉืชืžืฉื™ื ื™ื’ื™ืขื• ื›ืฉื”ื ืœื•ื—ืฆื™ื ืขืœ ื›ืคืชื•ืจ Login:

Exclusive FastComments Memberstack Snippet
Copy Copy
1
2<script src="https://cdn.fastcomments.com/js/embed-v2.min.js"></script>
3<div id="fastcomments-widget"></div>
4<script>
5 window.$memberstackDom.getCurrentMember().then(({data: member}) => {
6 if (member) {
7 FastCommentsUI(document.getElementById('fastcomments-widget'), {
8 tenantId: "demo",
9 urlId: window.location.pathname,
10 simpleSSO: {
11 username: member.customFields.name || member.auth.email.replace(/@.+/, ''),
12 email: member.auth.email,
13 avatar: member.customFields.avatar
14 }
15 });
16 } else {
17 FastCommentsUI(document.getElementById('fastcomments-widget'), {
18 tenantId: "demo",
19 urlId: window.location.pathname,
20 simpleSSO: {
21 loginURL: 'https://example.com/login'
22 }
23 });
24 }
25 })
26</script>
27

ื”ืชืืžื” ืื™ืฉื™ืช Internal Link

FastComments ืžืชื•ื›ื ืŸ ืœื”ืชืืžื” ืื™ืฉื™ืช ื›ื“ื™ ืœื”ืชืื™ื ืœืืชืจ ืฉืœืš.

ืื ืชืจืฆื• ืœื”ื•ืกื™ืฃ ืขื™ืฆื•ื‘ ืžื•ืชืื ืื™ืฉื™ืช ืื• ืœืฉื ื•ืช ืืช ื”ืชืฆื•ืจื”, ืขื™ื™ื ื• ื‘ืชื™ืขื•ื“ ื”ื”ืชืืžื” ื”ืื™ืฉื™ืช ืฉืœื ื• ื›ื“ื™ ืœืœืžื•ื“ ื›ื™ืฆื“.