diff --git a/bootstrap.php b/bootstrap.php index cbf2b20..9f6cc83 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -20,7 +20,7 @@ function () { 'label' => __('Facebook', 'wp-module-facebook'), 'callback' => function (Container $container) { if (!defined('NFD_FACEBOOK_WORKER')) { - define('NFD_FACEBOOK_WORKER', 'https://hiive.cloud/workers/facebook-connect'); + define('NFD_FACEBOOK_WORKER', 'https://hiive.cloud/workers/facebook-connect/'); } if (!defined('NFD_FACEBOOK_GRAPH_BASE')) { define('NFD_FACEBOOK_GRAPH_BASE', 'https://graph.facebook.com'); diff --git a/build/index.asset.php b/build/index.asset.php index 217f75a..f83ca31 100644 --- a/build/index.asset.php +++ b/build/index.asset.php @@ -1 +1 @@ - array('react', 'wp-api-fetch', 'wp-components', 'wp-i18n'), 'version' => '405b33e90f76ae50db4f'); + array('react', 'wp-api-fetch', 'wp-components', 'wp-i18n'), 'version' => 'cd3e17d9655d61edb0aa'); diff --git a/includes/services/FacebookService.php b/includes/services/FacebookService.php index 88c56cc..ab555b7 100644 --- a/includes/services/FacebookService.php +++ b/includes/services/FacebookService.php @@ -24,7 +24,7 @@ public static function get_hiive_token() public static function get_token() { $hiive_token = FacebookService::get_hiive_token(); - $url = NFD_FACEBOOK_WORKER . '/get/token?hiive_token=' . $hiive_token; + $url = NFD_FACEBOOK_WORKER . 'get/token?hiive_token=' . $hiive_token; $request = wp_remote_get( $url, array( @@ -53,7 +53,7 @@ public static function get_token() public static function delete_token() { $hiive_token = FacebookService::get_hiive_token(); - $url = NFD_FACEBOOK_WORKER . '/delete/token?hiive_token=' . $hiive_token; + $url = NFD_FACEBOOK_WORKER . 'delete/token?hiive_token=' . $hiive_token; $request = wp_remote_get( $url, array(