Page Reactions
Floating Likes Widget
FastComments supports multiple types of per-page reactions. We support what we call "Page Reacts" (demoed at bottom of this page) which are customizable emojis, or icons, that can display above the comment area.
We also have the Floating Likes widget which appears in the bottom right of the screen. This documentation covers both.
Page Reactions
The Page Reacts widget displays a customizable set of reaction icons on the comment widget.
Users can click the images to react, and it remembers reactions they've selected per-page. If they are logged into fastcomments.com, this is tied to their account.
If you click Run
on the example below you can see it in action.
Installation - VanillaJS
For Page Reacts we have to decide on two things:
- What reaction images to use.
- A short
id
to name each reaction.
Optionally:
- You can also define optional separate images for selected/unselected reacts.
- You can decide if you want to show the list of users who reacted when moving a mouse over one of the reactions.
The configuration for the React, Angular, and so on frontend libraries is the same.
The Floating Likes Widget
The floating likes widget displays a floating box in the bottom right hand of the screen with like and comment counts. You can see it in action on this page!
Users can click the heart to like the page, and it remembers pages they've liked. If they are logged into fastcomments.com, this is tied to their account to help prevent people from liking a page multiple times.
It also automatically detects the user's browser dark mode preferences and changes its skin to a dark version if desired.
Installation - VanillaJS
Installation is simple:
The type signature of the constructor is:
It supports sso to tie the reacts to the user's account for authentication.
Currently, only VanillaJS is supported. If you'd like this widget to be added to one of our client libraries, let us know!
Async Version
With SSO
We can pass Secure SSO or Simple SSO payloads as well:
Installation - WordPress
For WordPress, this feature can be enabled by installing a plugin like WPCode and adding the following HTML snippet to the blog footer: