by Thomas Pesendorfer on WordPress.org
Social Pulse ... is a WP plugin showing follower counts from YouTube, Facebook, X, and Steam. It uses Leader/Follower modes to reduce API requests.
Social Pulse … is a WP plugin showing follower counts from YouTube, Facebook, X, and Steam. It uses Leader/Follower modes to reduce API requests.
Social Pulse retrieves follower numbers from multiple platforms and displays them via WordPress shortcodes. In Leader mode, the plugin directly makes API requests to obtain the latest values, which are then cached and exposed at a dedicated URL. In Follower mode, the plugin skips direct API calls and instead retrieves the pre-fetched data from the Leader instance.
* Screenshot Leader-Mode
* Screenshot Follower-Mode
Leader Mode:
In this mode, Social Pulse performs the actual API calls to get the latest follower counts and caches these values. The current values are also exposed at a special URL (e.g. /social-counters/values), which can be used by Follower instances.
Follower Mode:
Follower mode is designed to minimize API calls on installations that do not need to fetch data directly. Instead of making API requests, the plugin retrieves the cached values from the Leader URL. This is particularly useful when dealing with strict API rate limits.
For each platform, you will need to obtain API keys, tokens, or IDs. Here are some helpful links to get you started:
YouTube:
YouTube Data API v3 – Getting Started
(Find your API key and channel ID here.)
Facebook:
Facebook for Developers, Long Lasting Tokens for Clients
(Learn how to create an app, get an access token, and locate your Page ID.)
X (formerly Twitter):
X Developer Platform, Generating and Using an App-Only Bearer-Token
(Obtain a Bearer Token and set up your developer credentials.)
Steam:
Steam Web API Documentation
(Find information on obtaining your Steam App ID and using the API.)
WordPress guidelines require that the use of external services is clearly statet. Although this is the sole purpose of this plugin I hereby state the following external service usage:
* Youtube API (https://www.googleapis.com/youtube/v3/channels)
The Youtube API is used to receive the youtube followers of the account the “Youtube API Key” belongs to.
* Steam API (https://api.steampowered.com/ISteamUserStats/GetNumberOfCurrentPlayers/v1/)
The Steam API is used to receive the current players of the Steam app with the “Steam App ID” you enter.
* Facebook API (https://graph.facebook.com/v22.0/)
The Facebook API is used to gather fan or follower count of the facbook page with the “Facebook Page ID” you enter.
* X API (https://api.twitter.com/2/users/by/username/)
The X API is used to gather the follower count of the account with the “X Username” you enter.