Social Pulse

Description

Social Pulse … is a WP plugin showing follower counts from YouTube, Facebook, X, and Steam. It uses Leader/Follower modes to reduce API requests.

General Idea

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

Try it out!

  • Download the ZIP
  • Navigate to the WordPress Playground
  • Go to the “Plugins” page
  • Click “Add New Plugin”
  • Click “Upload Plugin”
  • Select the ZIP and click “Install Now”
  • Click “Activate Plugin”
    The plugin should now be visible at the bottom of the WordPress menu.

Leader and 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.

How to Use Social Pulse in Leader Mode

  1. Activate Leader Mode:
    In the plugin settings, select Leader as the mode.
  2. Configure API Credentials:
    Enter your API keys, tokens, and IDs for YouTube, Facebook, X, and Steam in the respective fields.
  3. Save Changes:
    Make sure to save your settings.
  4. Retrieve Values:
    The plugin will automatically fetch and cache the current follower counts. The exposed values URL (displayed on the settings page) can be used by Follower installations.

How to Use Social Pulse in Follower Mode

  1. Activate Follower Mode:
    In the plugin settings, select Follower as the mode.
  2. Enter Leader URL:
    Provide the URL from a Leader installation (the URL where the leader exposes its cached values).
  3. Save Changes:
    Save your settings to store the Leader URL.
  4. Automatic Data Fetch:
    The plugin will now retrieve the follower values from the Leader URL every 5 minutes or whenever manually tested. Direct API requests are disabled in this mode.

Where to Find the Necessary Information

For each platform, you will need to obtain API keys, tokens, or IDs. Here are some helpful links to get you started:

External services

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.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Social Pulse” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Social Pulse” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.