kerigansolutions / fb-autoblog-wp
Installs: 1 033
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 3
pkg:composer/kerigansolutions/fb-autoblog-wp
Requires
- guzzlehttp/guzzle: ^7
 - illuminate/support: ^8
 - vlucas/phpdotenv: ^5.4
 
- dev-master
 - 2.6.2
 - 2.6.1
 - 2.6.0
 - 2.5.0
 - 2.4.0
 - 2.3.4
 - 2.3.3
 - 2.3.2
 - 2.3.1
 - 2.3.0
 - 2.2.5
 - 2.2.4
 - 2.2.3
 - 2.2.2
 - 2.2.1
 - 2.2
 - 2.1.4
 - 2.1.3
 - 2.1.2
 - 2.1.1
 - 2.1.0
 - 2.0.5
 - 2.0.4
 - 2.0.3
 - 2.0.2
 - 2.0.1
 - 2.0.0
 - 1.1.0
 - 1.0.0
 - 0.28
 - 0.27
 - 0.26
 - 0.25
 - 0.24
 - 0.23
 - 0.22
 - 0.19
 - dev-dependabot/npm_and_yarn/webpack-5.76.1
 - dev-dependabot/npm_and_yarn/json5-1.0.2
 - dev-dependabot/npm_and_yarn/loader-utils-1.4.2
 
This package is auto-updated.
Last update: 2025-10-14 17:59:09 UTC
README
Easily pull posts and events into your WordPress Site from a Facebook page that you manage. Previous versions of this package retrieved posts in real time. Since 2.0, WorDPress is required and a spcial Admin page in WordPress is created. Posts and Events are fetched and added to the WP database using a cron that runs every hour.
Status
Currently the app is configured to work with Posts and Events. Reviews and Albums are in progress.
Installation
composer require kerigansolutions/fb-autoblog-wp
Setup
- Make sure you have admin access to the page you need to manage.
 - Log into WordPress and go to the new Facebook Settings menu item.
 - Authorize the app using app secret (FYI only KMA knows this).
 - Use the Auth tool to authorize the app to use a Facebook page you manage.
 - Use the sync tool to build the database of posts.
 - Program a view to show the data in your templates.
 
Include or Extend the WP Admin class:
use KeriganSolutions\FacebookFeed; use KeriganSolutions\FacebookFeed\WP\FacebookPost; class Facebook extends FacebookFeed\WP\Admin { public $postsEnabled = true; public $eventsEnabled = false; public $photosEnabled = false; public $reviewsEnabled = false; // retrieve posts from WP database public function getFbPosts($num = -1, $args = []) { return (new FacebookPost())->query($num, $args); } }
Or make the API call and retrieve the results directly:
use KeriganSolutions\FacebookFeed\WP\FacebookPost; $feed = new Facebook; $results = $feed->query(5);
fetch("/wp-json/kerigansolutions/v1/get-kma-fb-post", { method: 'GET', mode: 'cors', cache: 'no-cache', headers: { 'Content-Type': 'application/json', }, }) .then(r => r.json()) .then((res) => { // do something with res })