Jake Vanderwerf
2026-07-12 c204185ae86a98994f80010abf35a190c9406739
inc/integrations/services/Instagram.php
File was renamed from inc/integrations/Instagram.php
@@ -3,14 +3,10 @@
 * Instagram Integration
 * File: /inc/integrations/Instagram.php
 */
namespace JVBase\integrations;
namespace JVBase\integrations\services;
use JVBase\integrations\Integrations;
use JVBase\meta\Meta;
use WP_Error;
use WP_REST_Request;
use WP_REST_Response;
use Exception;
if (!defined('ABSPATH')) {
   exit;
@@ -99,7 +95,7 @@
      $this->defaults = [
      ];
      $this->handleWebhooks = true;
      $this->hasWebhooks = true;
      parent::__construct($userID);
      $this->actions = array_merge(
@@ -192,8 +188,8 @@
   }
   public function getCredentials():array {
      parent::getCredentials();
      if (empty($this->credentials)) {
      $credentials = parent::getCredentials();
      if (empty($credentials)) {
         $facebook = JVB()->connect('facebook');
         if (!$facebook || !$facebook->isSetUp()) {
@@ -202,12 +198,12 @@
         $fbCredentials = $facebook->getCredentials();
         $this->credentials = [
         return [
            'client_id' => $fbCredentials['client_id'],
            'client_secret' => $fbCredentials['client_secret'],
         ];
      }
      return $this->credentials;
      return $credentials;
   }
   private function switchInstagramAccount(array $data): WP_Error|array