If Drupal is defined with a proxy, this module ignores it, and all HTTP requests are made directly.

Comments

superspring created an issue.

superspring’s picture

Here is a basic fix which copies Drupal's proxy setting to this module. An optional extra would be to copy the proxy authentication credentials too:

diff -r current/fbconnect/fbconnect.module fixed/fbconnect/fbconnect.module
413a414,424
>
> // Adds in proxy support for Drupal.
> if (variable_get('proxy_server', '') && variable_get('proxy_port', '')) {
>
> // There is a proxy? Add it into CURL.
> Facebook::$CURL_OPTS[CURLOPT_PROXY] = sprintf(
> '%s:%s',
> variable_get('proxy_server'),
> variable_get('proxy_port')
> );
> }