diff --git a/composer.lock b/composer.lock index 68282c17..470feb4c 100644 --- a/composer.lock +++ b/composer.lock @@ -70,16 +70,16 @@ }, { "name": "codeinwp/themeisle-sdk", - "version": "3.3.25", + "version": "3.3.29", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "29b7c81f8ccd039f49d62ef7427a4cc06369becc" + "reference": "4d63bc81ec0357c8675dac1e35511fd81104605d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/29b7c81f8ccd039f49d62ef7427a4cc06369becc", - "reference": "29b7c81f8ccd039f49d62ef7427a4cc06369becc", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/4d63bc81ec0357c8675dac1e35511fd81104605d", + "reference": "4d63bc81ec0357c8675dac1e35511fd81104605d", "shasum": "" }, "require-dev": { @@ -104,9 +104,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.25" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.29" }, - "time": "2024-07-08T13:49:14+00:00" + "time": "2024-08-21T08:03:45+00:00" }, { "name": "composer/ca-bundle", diff --git a/includes/admin/models/class-rop-services-model.php b/includes/admin/models/class-rop-services-model.php index df75f057..74185c4d 100644 --- a/includes/admin/models/class-rop-services-model.php +++ b/includes/admin/models/class-rop-services-model.php @@ -496,7 +496,7 @@ public function find_account( $account_id ) { list( $service, $service_id, $user_id ) = $this->handle_underscore_exception( $account_id ); - if ( count( $services[ $service . '_' . $service_id ]['available_accounts'] ) >= 1 ) { + if ( ! empty( $services[ $service . '_' . $service_id ]['available_accounts'] ) && count( $services[ $service . '_' . $service_id ]['available_accounts'] ) >= 1 ) { foreach ( $services[ $service . '_' . $service_id ]['available_accounts'] as $key => $account ) { if ( $account['id'] == $user_id ) { $response = array( diff --git a/includes/admin/services/class-rop-facebook-service.php b/includes/admin/services/class-rop-facebook-service.php index 81aeece1..b06f4019 100644 --- a/includes/admin/services/class-rop-facebook-service.php +++ b/includes/admin/services/class-rop-facebook-service.php @@ -163,7 +163,7 @@ public function set_api( $app_id = '', $secret = '' ) { array( 'app_id' => $this->strip_whitespace( $app_id ), 'app_secret' => $this->strip_whitespace( $secret ), - 'default_graph_version' => 'v16.0', + 'default_graph_version' => 'v20.0', ) ); } catch ( Exception $exception ) { @@ -761,9 +761,9 @@ private function try_post( $new_post, $page_id, $token, $post_id, $posting_type $post_data['access_token'] = $token; if ( 'video' === $posting_type ) { - $url = 'https://graph-video.facebook.com/v12.0' . $path; + $url = 'https://graph-video.facebook.com/v20.0' . $path; } else { - $url = 'https://graph.facebook.com/v12.0' . $path; + $url = 'https://graph.facebook.com/v20.0' . $path; } // Scrape post URL before sharing