WP Facebook Auto Post
WP Facebook Autopost is a free WordPress plugin that will automatically make facebook posts for your new blog posts
by Nerdy South Inc · github.com/n3rdysouth/wpfacebookautopost · 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/n3rdysouth/wpfacebookautopost/archive/refs/heads/main.zipAutomatically post new blog posts to your Facebook page with customizable post formats.
Features
- Automatic posting to Facebook when new WordPress posts are published
- Customizable post format with dynamic variables
- Easy-to-use settings interface
- Secure Facebook OAuth integration
- Page selection for multi-page accounts
- Enable/disable auto-posting without losing configuration
Installation
- Upload the plugin folder to
/wp-content/plugins/ - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Settings > Facebook Auto Post to configure
Setup Guide
Step 1: Create a Facebook App
- Go to Facebook Developers
- Click "Create App" and choose "Business" type
- Fill in the app details and create the app
- Add "Facebook Login" product to your app
- In the Facebook Login settings, add your redirect URI to "Valid OAuth Redirect URIs":
https://yourdomain.com/wp-admin/options-general.php?page=wp-facebook-auto-post
Step 2: Configure Plugin
- In WordPress, navigate to Settings > Facebook Auto Post
- Enter your Facebook App ID and App Secret
- Click "Save App Credentials"
Step 3: Authorize Facebook
- Click the "Authorize with Facebook" button
- Log in to Facebook and grant permissions
- You'll be redirected back to your WordPress admin
Step 4: Select Page
- Choose which Facebook page you want to post to
- Click "Select Page"
Step 5: Customize Post Format
Use the following variables in your post format:
{POST_TITLE}- The title of your blog post{POST_URL}- The URL to your blog post{POST_EXCERPT}- The post excerpt{POST_AUTHOR}- The post author's name{BLOG_TITLE}- Your blog's name{BLOG_URL}- Your blog's URL{POST_DATE}- The post publication date{POST_TIME}- The post publication time
Example formats:
New post: {POST_TITLE} - {POST_URL}
Check out our latest article: {POST_TITLE}
Written by {POST_AUTHOR}
Read more: {POST_URL}
📝 New on {BLOG_TITLE}: {POST_TITLE}
{POST_EXCERPT}
👉 {POST_URL}
Requirements
- WordPress 5.0 or higher
- PHP 7.0 or higher
- Active Facebook Page
- Facebook App with appropriate permissions
Facebook App Permissions
The plugin requires the following Facebook permissions:
pages_manage_posts- To post content to your pagepages_read_engagement- To read page information
Frequently Asked Questions
How do I know if a post was shared to Facebook?
Posts that have been successfully shared will have metadata stored indicating they've been posted. You can check the WordPress error logs for any Facebook API errors.
Can I share to multiple pages?
Currently, the plugin supports one page at a time. You can change the selected page at any time in the settings.
What happens if the Facebook API fails?
The plugin will log errors to the WordPress error log. Posts will not be marked as shared if the API call fails, so you can retry by re-publishing the post.
Can I customize which post types are shared?
By default, only standard posts are shared. You can modify this by editing the plugin code in the auto_post_to_facebook method.
How do I re-authorize my Facebook account?
Simply click the "Re-authorize Facebook" button in the settings page and follow the authorization flow again.
Support
For support and feature requests, please contact Nerdy South Inc at https://nerdysouthinc.com
Changelog
1.0.0
- Initial release
- Facebook OAuth integration
- Customizable post formats
- Page selection
- Auto-posting functionality
License
This plugin is licensed under the GPL v2 or later.
Credits
Developed by Nerdy South Inc - https://nerdysouthinc.com