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๋Š” ๊ท€ํ•˜์˜ ์‚ฌ์ดํŠธ์— ๋งž๊ฒŒ ์‚ฌ์šฉ์ž ์ •์˜ํ•  ์ˆ˜ ์žˆ๋„๋ก ์„ค๊ณ„๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

์‚ฌ์šฉ์ž ์ •์˜ ์Šคํƒ€์ผ์„ ์ถ”๊ฐ€ํ•˜๊ฑฐ๋‚˜ ๊ตฌ์„ฑ์„ ์กฐ์ •ํ•˜๋ ค๋ฉด ์‚ฌ์šฉ์ž ์ •์˜ ๋ฌธ์„œ๋ฅผ ํ™•์ธํ•˜์—ฌ ๋ฐฉ๋ฒ•์„ ์•Œ์•„๋ณด์„ธ์š”.