sidewaysnyc / sw-classic-ig
Sideways Instagram plugin
Package info
github.com/wearesideways/sw-classic-ig-plugin
Type:wordpress-plugin
pkg:composer/sidewaysnyc/sw-classic-ig
Requires
- php: >=8.3
- janu-software/facebook-php-sdk: ^0.4.1
- php-http/guzzle7-adapter: ^1.1
- thecodingmachine/safe: ^3.4
Requires (Dev)
- roave/security-advisories: dev-latest
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Custom Wordpress plugin to import Instagram posts to WP posts (This is a replacement for the dsgnwrks-instagram-importer plugin).
Configuration Vars
You must define following keys to be able to connect with the FB Graph API:
define('SW_IG_FB_APP_ID', 'XXXX');
define('SW_IG_FB_APP_SECRET', 'XXXXX');
Plugin Settings
You can set different settings by project, you must define them on your local-config.php (or wp-config.php) file:
- Post Type Name:
define('SW_IG_POST_TYPE', 'instagram') - Default Post Status:
define('SW_IG_POST_STATUS', 'publish') - On/Off to remove hashtags from title (dsgnwrks remove from post_title, post_content, post_excerpt):
define('SW_IG_REMOVE_HASHTAGS', false)
Features
- Plugin settings page to login and sync feed.
- Login with FB Business Accounts (must have an Instagram Page Linked)
- Can login multiple accounts and each account can have many pages/ig_pages linked to it.
- Import the last 20 Instagram posts as WP Posts.
- It has validations to prevent duplicated entries compared with the current records on the database.
- The import is manually.
- Custom settings depending on the project
- Set custom posts type name
- Set default status post
- Set on/off remove hashtags on IG posts title
- Setting to enable or disable WP Cron Job for daily automatic imports
- This will import from all the configured accounts
- In WP multisites, there will be a configuration page by each subsite
PHP compatibility
Version 3.1 requires PHP 8.3 or newer and supports PHP 8.5 through the maintained Facebook SDK, PSR-18 Guzzle adapter, and Safe 3 dependencies. The configured Graph API version and existing request paths are unchanged.
Run composer install and composer test for the offline compatibility checks.
The tests mock all HTTP responses and WordPress writes; they do not log in to
Facebook, import posts, run WordPress cron, or send notifications.