title: Error while sending HTTP request
body: <p>After to go to <a href="http://localhost/app_dev.php/login/facebook" rel="nofollow">http://localhost/app_dev.php/login/facebook</a> I have this error : </p>
  
  <pre><code> [1/2] RequestException: Failed to connect to localhost port 1080: Connection refused  -
  
  in vendor/kriswallsmith/buzz/lib/Buzz/Client/Curl.php at line 29
  
  Uncaught PHP Exception HWI\Bundle\OAuthBundle\OAuth\Exception\HttpTransportException: "Error while sending HTTP request" at /var/www/symfony/vendor/hwi/oauth-bundle/OAuth/ResourceOwner/AbstractResourceOwner.php line 256 Context: { "exception": "Object(HWI\\Bundle\\OAuthBundle\\OAuth\\Exception\\HttpTransportException)" } 
  </code></pre>
  
  <p>My config_dev.php : </p>
  
  <pre><code># HWIOAuthBundle
  hwi_oauth:
      connect:
          account_connector: hwi_oauth.user.provider.entity
      firewall_names: [secured_area]
      resource_owners:
          facebook:
              type:                facebook
              client_id:           ...
              client_secret:       ...
              options:
                  display: popup #dialog is optimized for popup window
                  auth_type: rerequest 
      fosub:
          username_iterations: 30
          properties:
          facebook: facebookId
  </code></pre>
  
  <p>My security.yml : 
  ...</p>
  
  <pre><code>    providers:
          fos_userbundle:
              id: fos_user.user_provider.username
  
      firewalls:
          secured_area:
              anonymous: ~
              oauth:
                  resource_owners:
                      facebook: "/login/check-facebook"
                  login_path:        /login
                  failure_path:      /login
  
                  oauth_user_provider:
                      service: hwi_oauth.user.provider.entity
  </code></pre>
  
  <p>For information I use Symfony3.</p>
  
  <p>Thanks for your help :)</p>