[WordPress] 外掛分享: Social Pulse

首頁外掛目錄 › Social Pulse
WordPress 外掛 Social Pulse 的封面圖片
全新外掛
安裝啟用
尚無評分
234 天前
最後更新
問題解決
WordPress 5.0+ v1.1.4 上架:2025-04-12

內容簡介

Social Pulse 是一款社群媒體粉絲數顯示外掛,可串接 YouTube、Facebook、X 及 Steam 平台,透過短代碼在網站上展示追蹤者數量,並以 Leader/Follower 模式有效降低 API 請求次數。

【主要功能】
• 整合 YouTube、Facebook、X、Steam 四大平台粉絲數據
• 透過 WordPress 短代碼於前台顯示追蹤者數量
• Leader 模式直接呼叫 API 並快取數據
• Follower 模式從 Leader 站台取得資料,減少 API 請求
• 自動每 5 分鐘從 Leader 網址更新數據
• 提供專屬網址供多站台間共享快取資料

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Social Pulse」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

Activate Leader Mode:
In the plugin settings, select Leader as the mode.
Configure API Credentials:
Enter your API keys, tokens, and IDs for YouTube, Facebook, X, and Steam in the respective fields.
Save Changes:
Make sure to save your settings.
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

Activate Follower Mode:
In the plugin settings, select Follower as the mode.
Enter Leader URL:
Provide the URL from a Leader installation (the URL where the leader exposes its cached values).
Save Changes:
Save your settings to store the Leader URL.
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:

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.)

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.

延伸相關外掛

文章
Filter
Mastodon