diff --git a/src/Plugin/Network/TwitterAuth.php b/src/Plugin/Network/TwitterAuth.php
index 11d2141..11013bb 100644
--- a/src/Plugin/Network/TwitterAuth.php
+++ b/src/Plugin/Network/TwitterAuth.php
@@ -9,6 +9,7 @@ use Drupal\social_api\SocialApiException;
 use Drupal\social_auth\Plugin\Network\SocialAuthNetwork;
 use Abraham\TwitterOAuth\TwitterOAuth;
 use Symfony\Component\DependencyInjection\ContainerInterface;
+use Drupal\Core\Site\Settings;
 
 /**
  * Defines Social Auth Twitter Network Plugin.
@@ -84,6 +85,30 @@ class TwitterAuth extends SocialAuthNetwork implements TwitterAuthInterface {
     // Creates a and sets data to TwitterOAuth object.
     $client = new TwitterOAuth($settings->getConsumerKey(), $settings->getConsumerSecret());
 
+    // Use proxy if it's set.
+    $proxy_settings = NULL;
+    $http_client = Settings::get('http_client_config');
+    if ($http_client) {
+      // Try using https first.
+      if (isset($http_client['proxy']['https'])) {
+        $proxy_settings = parse_url($http_client['proxy']['https']);
+      }
+      // Or http if https isn't set.
+      else if (isset($http_client['proxy']['https'])) {
+        $proxy_settings = parse_url($http_client['proxy']['http']);
+      }
+
+      if ($proxy_settings) {
+        $proxy = [
+          'CURLOPT_PROXY' => $proxy_settings['host'],
+          'CURLOPT_PROXYUSERPWD' => "{$proxy_settings['user']}:{$proxy_settings['pass']}",
+          'CURLOPT_PROXYPORT' => $proxy_settings['port'],
+        ];
+
+        $client->setProxy($proxy);
+      }
+    }
+
     return $client;
   }
 
