The Social Importer is a service package for offbeatWP.
Install the package using Composer (First you need to go to the OffbeatWP theme folder)
composer require offbeatwp/social-importer
Then you need to add the social importer as service. You can do this by adding the service in the config/service.php
file.
OffbeatWP\SocialImporter\Service::class,
Now make a social_importer.php
file in config
folder. You need to register the API key using this file.
return [
[
'id' => 'account_insta',
'type' => 'instagram',
'api_key' => 'my api key',
'api_secret' => 'my secret',
],
After this, you have to activate the account using OAuth.
Make a call using WP cli
wp social-importer