FastComments.com

Multiple Sites

In this guide we'll cover having multiple sites, domains or subdomains, in the same FastComments account as well as some common use cases.

Tenant Per Environment Internal Link

It is common to have a sub tenant per test or dev environment with FastComments. Each tenant would have its own configuration, data, and API keys. Configuration, data, and users cannot be shared across tenants. Everything is isolated. However, super admins of the parent tenant can impersonate users in child tenants.

There are two approaches:

  • The main tenant is for production, and sub-tenants are for test environments.
  • The main tenant is simply for billing, and each sub-tenant is for prod, test, and so on.

The first is generally easier for users to reason about, but this may depend on your organization.

Tenants can be created here if you have the package. This is also where super admins would impersonate users. Tenants can also be created via the API for more custom/automated setups.

No matter the approach taken, you'll have to add the moderators and users that want to see production data in the "prod" tenant. So for example if you want to go with option B and have the parent tenant for billing, and have a sub tenant for "prod", you'll want to add the tenant, switch to the new tenant, and add your admin and moderator users for the sub-tenant.

Finally, to clarify, the Moderate Comments page will be empty with option B for the parent tenant.

Comment Moderation Internal Link

The Moderate Comments page combines the comments across all of your sites.

In order to find the comments for a specific site, simply search for the domain with quotes, for example: "blog.fastcomments.com".

Sharing Comments Across Domains Internal Link

Comments themselves are not tied to a particular domain.

They are tied to your account, and the urlId provided.

This means that we can render the same comment thread on two separate sites with the same FastComments account by simply passing in the same value for urlId in the widget configuration.

In this scenario, comments posted on page A would immediately appear on page B, and vice-versa. Live commenting also works as expected.

You can find an example in this blog post.

In Conclusion

You've reached the end of the Multiple Sites documentation. Let us know what further comments or questions you have below - you may also reach out to us via the Support Page.

If you feel like this documentation is missing something please ask as others will benefit.