PSS Facebook Page
PSS Wordpress FB Plugin
by Your Name · github.com/nlangidrik/pss-wordpress-fb-plugin · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/nlangidrik/pss-wordpress-fb-plugin/archive/refs/heads/main.zipDisplay recent Facebook Page posts on your WordPress site using the Graph API and a shortcode.
Description
PSS Facebook Page fetches posts from your Facebook Page (Graph API v18.0), caches them with WordPress transients, and renders a responsive grid you can place anywhere with [fb_top_posts].
Each card can show the image, a truncated message, the date, reaction and comment counts, and a link to the post on Facebook. Styles include dark mode when the visitor’s system prefers dark color schemes, plus hover lift and shadow on cards.
Settings: Settings → PSS Facebook Page — Page ID, Page access token, cache duration (seconds).
Shortcode: [fb_top_posts] with optional count, columns, and show_images.
Installation
- Upload the
fb-top-postsfolder to/wp-content/plugins/. - Activate the plugin through the Plugins screen.
- Go to Settings → PSS Facebook Page and enter your Page ID and Page access token.
- Add
[fb_top_posts]to a post, page, or block that supports shortcodes.
Frequently Asked Questions
What permissions does the token need?
You need a Page access token with permission to read Page content and engagement (for example pages_read_engagement), per Facebook’s current documentation.
How do I clear cached posts?
Save settings again (cache clears automatically), or use Clear posts cache on the settings page.
Screenshots
- Settings page under Settings → PSS Facebook Page.
- Front-end grid of post cards (light and dark appearance depends on
prefers-color-scheme).
Changelog
1.0.0
- Initial release: Graph API v18.0, transients cache, shortcode with count/columns/show_images, responsive grid, dark mode and hover styles.
Upgrade Notice
1.0.0
First public release.