Using the Facebook Extension
Day to day, using the Facebook extension means pasting team Page URLs into the right meta box and dropping the widget into the sidebars where it should appear. This article walks through both flows and the troubleshooting steps you might need.
Adding a team's Facebook Page
Go to SportsPress → Teams and edit the team.
In the Facebook meta box, paste the team's Facebook Page URL into the Page URL field.
Update the post.
Embedding in the team page
If your theme uses the SportsPress template structure with a Facebook section enabled, the team page will show the embedded Facebook Page automatically. The embed uses Facebook's official Page Plugin SDK and renders inside the dedicated section on the team page.
If you prefer to embed manually, you can call do_action( 'sportspress_team_facebook' ) from a custom team template, or use the Facebook widget (below) on a team-specific sidebar.
Adding the Facebook widget
The Facebook widget can appear in two ways:
Sitewide widget (fixed Page URL)
Go to Appearance → Widgets.
Drag the Facebook widget into a sidebar or footer area.
Set a Title and paste a fixed Page URL (e.g. your league's main Facebook Page).
Tick the Tabs you want to show — Timeline shows recent posts, Events lists upcoming Facebook Events, Messages adds a Send Message button.
Save the widget.
Team-aware widget
Place the widget on a sidebar that appears on team pages.
Tick Use team's Page URL.
The widget will pull each team's
sp_facebookvalue automatically when rendered on that team's page. Teams without a Page URL will fall back to the fixed value (or render nothing if the fixed field is empty).
Troubleshooting
Symptom | Likely cause |
Embed shows nothing on the frontend | Page URL is malformed (must be a full |
Embed shows on local dev but not on production | Some hosting providers block requests to the Facebook SDK — check console for blocked-script warnings |
Tabs option ignored | Check that you ticked at least one tab; Facebook requires one to render |
Widget on team page shows wrong page | "Use team's Page URL" not enabled, or the team has no |
