Resource stands for unique identifier for resource where you want to measure reactions. You can pass item ids, page slugs or page titles. You need to follow one rule. You can't change resource because all existing reaction will remain connected to old resource.
<Widget resource="[token]" />
All reactions are linked to
resource. After changing resource users can add