RelayPoint Connect
WordPress plugin
Install RelayPoint Connect on a WordPress site: keys, allowed origins, the shortcode and block, and posting to the company's socials.
The RelayPoint Connect plugin adds "Connect" buttons to any page. Logged-in users (for example your agents) connect their own accounts in the RelayPoint popup, and administrators connect the company's pages and post to them from the WordPress admin. The secret key stays on your server, encrypted with the site's security salts; browsers only get the publishable key and a short-lived session token. Requires WordPress 6.0+ and PHP 8.0+. Translated into French and Portuguese.
Install
- Download the plugin: relaypoint-connect.zip.
- In WordPress go to Plugins › Add New › Upload Plugin, choose the zip, click Install Now, then Activate.
- Open Settings › RelayPoint Connect.
Settings
Paste your test keys first, keep the mode on Test, save, and click Check connection: every line should be green.
- Publishable key (
rp_pk_test_…, laterrp_pk_live_…): from Dashboard › API keys › Publishable keys. - Secret key (
rp_test_…, laterrp_live_…): from Dashboard › API keys. It needs theconnectionsandsocialscopes (or*). It is stored encrypted and never shown again. - Mode: Test or Live. Each mode has its own pair of keys; switch to Live only when everything works in test.
- Check connection calls
GET /v1/connect/status: it shows whether the keys are valid, whether this site's origin is allowed (and the allowed origins), whether the package is active (live) and which providers are available.
Allowed origins
Shortcode and block
Add the RelayPoint Connect block (in the block inserter) or the shortcode to any page. The block has the same two settings in its sidebar.
[relaypoint_connect]
[relaypoint_connect provider="facebook,instagram" end_user="current_user"]
[relaypoint_connect provider="all" end_user="company"]
[relaypoint_connect provider="google_drive"]Each provider shows a Connect button and, once connected, the account with a Disconnect button. open() runs in the click, so pop-up blockers don't interfere.
Attributes
| Attribute | Values | Default |
|---|---|---|
provider | all, or one or more of facebook, instagram, linkedin, google_drive (comma-separated) | all |
end_user | current_user (each logged-in user's own accounts) or company (the company's accounts) | current_user |
What end_user means
current_user: each logged-in WordPress user connects their own accounts, stored at RelayPoint for the end userwp:<user id>(for examplewp:42). Visitors who are not logged in see a "Log in to connect your accounts" link.company: the company's own pages and accounts (end usercompany). Only users with themanage_optionscapability see it; others see nothing. Change the capability with therelaypoint_connect_company_capabilityfilter. Post to socials posts to these accounts.
Post to socials
Tools › Post to socials (and a dashboard widget) posts to the company accounts:
- Text, an image from the media library, a link, the accounts to post to and an optional schedule.
- RelayPoint adapts the post to each network (length, hashtags, links, image size and ratio). If a network can't take it, the errors are shown and nothing is published.
- The last 10 posts are listed with their status per network; scheduled posts can be canceled.
- In test mode, posts are simulated and nothing is published.
Uninstall
Deactivate and delete the plugin from Plugins. Deleting removes its settings (including the encrypted secret key) and cached data. Connections and posts stay in your RelayPoint workspace: disconnect them in the dashboard or with DELETE /v1/connections/{id} if you no longer need them.
Staging and developer options
Point the plugin at another RelayPoint environment with constants in wp-config.php or filters (defaults: the production API and app hosts).
// wp-config.php (above "That's all, stop editing!"): point the plugin at a staging RelayPoint.
define( 'RELAYPOINT_API_BASE', 'https://api.staging.example.com' ); // API (/v1 calls from PHP)
define( 'RELAYPOINT_APP_BASE', 'https://app.staging.example.com' ); // browser script and popup
// Or with filters, e.g. in a small must-use plugin:
add_filter( 'relaypoint_connect_api_base', fn () => 'https://api.staging.example.com' );
add_filter( 'relaypoint_connect_app_base', fn () => 'https://app.staging.example.com' );
// Let editors (not only administrators) manage the company's accounts:
add_filter( 'relaypoint_connect_company_capability', fn () => 'edit_others_posts' );Troubleshooting
| Problem | What to do |
|---|---|
| The popup doesn't open | A pop-up blocker or an extension stopped it. The button opens the popup directly in the click; allow pop-ups for the site, or ask the user to click again. |
| "This origin isn't allowed" | Add the exact origin the page was served from (scheme, host, port; apex and www) to the publishable key's allowed origins. Check connection shows the current list. |
package_required | Live keys need the RelayPoint Connections package (Dashboard › Billing). Test keys work without it. |
| A provider is missing | It isn't available to your account yet (Check connection shows the reason), or it isn't in the shortcode's provider list. |
| Widget shows old data or the wrong user | A page cache served a logged-in page. Exclude pages with the widget from caching (the widget is only rendered for logged-in users, who normally bypass caches). |
| Invalid key after switching mode | Each mode has its own keys: paste the live pair when you switch to Live. |