Template Guides
Displaying Social Counts
Request the count for the intended account or URL. The account identifier depends on the provider; use the relevant provider setup rather than assuming every service accepts the same username format.
Calls Used in This Task
craft.socialShare.getFollowers(handle, account, options)
Returns the number of followers for a given provider and identifier, such as a username or ID.
craft.socialShare.getShares(handle, url, options)
Returns the number of shares for a given provider and URL.
Last updated: Oct 5, 2026, 9:08:38 AM