Descrição
Auto Sync for FB connects your Facebook Page to your WordPress site via the Facebook Graph API.
Key Features:
* Automatically imports Facebook Page posts as WordPress blog posts.
* Downloads post images directly into the WordPress Media Library and sets them as Featured Images (_thumbnail_id).
* Deduplication Engine: Tracks _fb_post_id in post meta so posts are never imported twice.
* Batch Historical Importer: Migrate hundreds of older posts with cursor-based pagination and a live progress bar without server timeouts.
* Native WP-Cron scheduling (Hourly, Every 2 Hours, Twice Daily, or Daily).
* Manual “Sync Latest Posts (Quick)” and “Test Connection” buttons in WP Admin.
* Choice of Published vs Draft status, default category, and author.
* Token Exchange Tool: Easily exchange short-lived tokens for permanent (never-expiring) Facebook Page Access Tokens.
How to Get Facebook Credentials
- Go to Facebook for Developers.
- Create an App (Type: Other / Business).
- Select Use Case “Manage everything on your Page”. Add business_management to minimum proposed permissions.
- Select Tools/Graph API Explorer and create User token with pages_show_list, business_management, pages_read_engagement permissions.
- Get Page Access Token for your page, with the same permissions as above.
- Copy your Facebook Page ID (found in your Page’s About section or URL).
How to Get a Never-Expiring (Permanent) Token
Short-lived Facebook tokens expire in 1-2 hours. To get a permanent token that never expires:
- Copy your App ID and App Secret from your Facebook Developer App Settings (Settings > Basic).
- Enter your App ID, App Secret, and temporary Page Access Token into the plugin settings.
- Click Exchange for Never-Expiring Token.
- The plugin will exchange your short-lived token via Facebook Graph API for a permanent Page Access Token and automatically save it into your settings!
Instalação
- Upload the
auto-sync-for-fbfolder to your/wp-content/plugins/directory (or zip the folder and upload via Plugins > Add New > Upload Plugin). - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Go to Settings > Auto Sync for FB in your WordPress dashboard.
- Enter your Facebook Page ID and Page Access Token.
- Click Test FB Connection to confirm connectivity.
- Click Sync Now to immediately import your latest posts, or let WP-Cron run automatically on your chosen schedule.
Perguntas frequentes
-
Does this plugin require external paid services?
-
No. The plugin communicates directly between your WordPress site and the official Facebook Graph API.
-
Will this plugin slow down my site?
-
No. The sync runs asynchronously via WP-Cron in short bursts (less than 2 seconds) and exits immediately if no new Facebook posts are detected.
-
How do I prevent Facebook tokens from expiring?
-
Use the built-in Token Exchange feature in the settings page. Enter your Facebook App ID and App Secret to convert short-lived tokens into permanent, non-expiring Page Access Tokens.
-
Can I import posts as drafts first?
-
Yes. You can select “Save as Draft” in the settings if you prefer to review posts before publishing them to your blog.
Avaliações
Não há avaliações para este plugin.
Colaboradores e desenvolvedores
“Auto Sync for FB” é um programa de código aberto. As seguintes pessoas contribuíram para este plugin.
ColaboradoresTraduzir o “Auto Sync for FB” para seu idioma.
Interessado no desenvolvimento?
Navegue pelo código, consulte o repositório SVN ou assine o registro de desenvolvimento por RSS.
Registro de alterações
1.1.0
- Added Batch Historical Importer with live progress bar and pause/stop controls for migrating full post histories.
- Added cursor-based pagination (
aftercursor) in Facebook API client (fetch_posts_page). - Added
fb2wp_batch_syncAJAX endpoint with non-blocking batch execution.
1.0.1
- Improved WP-Cron deactivation hook using wp_clear_scheduled_hook.
1.0.0
- Initial release of Auto Sync for FB.
