Any use of FB apps fails entirely, for example:
Facebook API exception connect() timed out!.
#0 /var/www/sites/all/libraries/facebook-php-sdk/src/facebook.php(575): Facebook->makeRequest('https://api.fac...', Array)
#1 /var/www/sites/all/libraries/facebook-php-sdk/src/facebook.php(511): Facebook->_oauthRequest('https://api.fac...', Array)
#2 /var/www/sites/all/libraries/facebook-php-sdk/src/facebook.php(490): Facebook->_restserver(Array)
#3 /var/www/sites/all/modules/fb/fb.module(546): Facebook->api(Array)
#4 /var/www/sites/all/modules/fb/contrib/fb_permission.module(186): fb_fql_query(Object(Facebook), 'SELECT permissi...')
#5 [internal function]: fb_permission_form_alter(Array, Array, 'fb_app_edit_for...')
#6 /var/www/includes/common.inc(2883): call_user_func_array('fb_permission_f...', Array)
#7 /var/www/includes/form.inc(550): drupal_alter('form', Array, 'fb_app_edit_for...')
#8 /var/www/includes/form.inc(105): drupal_prepare_form('fb_app_edit_for...', Array, Array)
#9 [internal function]: drupal_get_form('fb_app_edit_for...')
#10 /var/www/includes/menu.inc(348): call_user_func_array('drupal_get_form', Array)
#11 /var/www/index.php(18): menu_execute_active_handler()
#12 {main}
$_REQUEST:
Array
(
[q] => admin/build/fb/fb_app_create
[__utma] => 194209391.1569721927.1285700389.1285819232.1294555007.6
[__utmz] => 194209391.1285700389.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
[SESS62c28a251d1279398378aebe0ced3640] => f60e61d0484c91a8b279197ea6619509
[__qca] => P0-918175911-1294550598196
[has_js] => 1
[__utmc] => 194209391
)
REQUEST_URI:
/admin/build/fb/fb_app_create
Changing api-read.facebook.org to api.facebook.com does not, alas, help in any way :)
Comments
Comment #1
Dave Cohen commentedIf your server is behind a firewall, or has bad DNS, this can happen. I recently learned it will happen on servers in China (essentially, behind a big firewall that doesn't reach facebook).
There's no way to make it work in these cases. (Although every exception should be caught and handled reasonably well.)
Comment #2
Joi commentedIm having similar issues since today. Im hosting a canvas app on a server in Germany. I did not have any problems until today.
Comment #3
Joi commentedMy error could be something else though. It might be internal.
Now I'm getting "Failed to get app properties for Social Wishlist.: SSL connection timeout 28"
occasionally Im having internal server error 500s with the logs telling me mod_fcgid failed.
Comment #4
Joi commentedmy problem was solved by changing the facebook sdk according to this post: http://drupal.org/node/861866#comment-3237122
If this is a sdk problem maybe it can help you too.
Comment #5
1kenthomas commentedThis was due to AWS changing the format of some of its firewall rules without notice-- boy, was that fun to track down. Thanks for all the responses; sorry to have taken your time.
Comment #6
1kenthomas commentedReopening; please handle the error more gracefully at some point in future. (Note this site had already been running successfully for over 6 months).
Comment #7
ecdiddy commentedI'm having a similar problem here in Vietnam. The problem presents itself intermittently. Also, I am able to connect to my regular facebook login using the browser.
Below is the error output.
... (Object) FacebookApiException
Krumo version 0.2a | http://krumo.sourceforge.net Called from /Applications/MAMP/htdocs/okay-chief/sites/all/modules/fb/fb.module, line 1165
Failed to get app properties for Okay Chief.: Failed to connect to 69.171.229.23: Can't assign requested address 7
Failed to access test accounts.: Failed to connect to 69.171.229.23: Can't assign requested address 7
Comment #8
steinmb commentedMake sure you have the latest version of the fb module and the latest sdk library installed and test again.
Comment #9
ecdiddy commentedstill receiving the same error. I am located in Vietnam. I can connect to facebook.com but while integrating the fb module in my website I keep on getting the repeating error message.
Failed to get app properties for Partay.: Failed to connect to 66.220.147.38: Can't assign requested address 7
Comment #10
steinmb commentedDont change major version. Pls. create a separate issue.
Comment #11
steinmb commentedHousekeeping.