Hi Dave.
This is the error I get when I press the 'Facebook Applications' button.
What I have done, is to create a user and log into drupal. Then go to account->edit->facebook applications. If the user is connected with facebook I get the following error. If the user is not connected with facebook, i just get a message saying that the user is not associated with any facebook applications.

I have noticed, that everytime I connect a user, the site becomes very slow. If I disconnect, the site becomes fast again. Maybe this is somehow related to the timeout message below.

Facebook API exception name lookup timed out.
#0 /home/magnetis/public_html/drupal/sites/all/libraries/facebook-php-sdk/src/facebook.php(522): Facebook->makeRequest('https://api-rea...', Array)
#1 /home/magnetis/public_html/drupal/sites/all/libraries/facebook-php-sdk/src/facebook.php(462): Facebook->_oauthRequest('https://api-rea...', Array)
#2 /home/magnetis/public_html/drupal/sites/all/libraries/facebook-php-sdk/src/facebook.php(441): Facebook->_restserver(Array)
#3 /home/magnetis/public_html/drupal/modules/fb/fb_user.module(569): Facebook->api(Array)
#4 /home/magnetis/public_html/drupal/modules/user/user.module(2499): fb_user_user('form', Array, Object(stdClass), 'fb_user')
#5 /home/magnetis/public_html/drupal/modules/user/user.pages.inc(252): _user_forms(Array, Object(stdClass), 'fb_user')
#6 [internal function]: user_profile_form(Array, Object(stdClass), 'fb_user')
#7 /home/magnetis/public_html/drupal/includes/form.inc(372): call_user_func_array('user_profile_fo...', Array)
#8 [internal function]: drupal_retrieve_form('user_profile_fo...', Array, Object(stdClass), 'fb_user')
#9 /home/magnetis/public_html/drupal/includes/form.inc(102): call_user_func_array('drupal_retrieve...', Array)
#10 /home/magnetis/public_html/drupal/modules/user/user.pages.inc(237): drupal_get_form('user_profile_fo...', Object(stdClass), 'fb_user')
#11 [internal function]: user_edit(Object(stdClass), 'fb_user')
#12 /home/magnetis/public_html/drupal/includes/menu.inc(348): call_user_func_array('user_edit', Array)
#13 /home/magnetis/public_html/drupal/index.php(18): menu_execute_active_handler()
#14 {main}
$_REQUEST:
Array
(
    [q] => user/49/edit/fb_user
    [SESS13747b6f765adf0ad076bf8432bf7c91] => f658e34e72384dfe1a22cdec8e511420
    [SESS8bcd9c33ef56d0d10e6ce86a42fc56b9] => 392d195082e473afa4ab8dbbab407c41
    [fbs_f2ec87f8d509a68d9533a4c63753ab64] => "access_token=116490418365649|2.cfs3VvLYGxlpPAsgiOn_3g__.3600.1279760400-638299440|ej7fHzyDWQAoIAZKbHciAb68PSM.&expires=1279760400&secret=RVe7mdveUbUmue9D_Af5cg__&session_key=2.cfs3VvLYGxlpPAsgiOn_3g__.3600.1279760400-638299440&sig=0d6971f393bf1277d4be2dd9ba2534d1&uid=638299440"
    [has_js] => 1
)


REQUEST_URI:
/user/49/edit/fb_user

Comments

Dave Cohen’s picture

Are you on a shared host?

Can you get a phpinfo (the devel module provides it). And look for any lines related to "curl". I'm curious what they say.

I've seen this error once. The system had curl configured a funny way. But the error happened over and over again, preventing anyone from using facebook connect.

msti’s picture

This is the php configure command:

'./configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-sockets' '--prefix=/usr/local' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-png-dir=/usr' '--with-sqlite=shared' '--with-ttf' '--with-xpm-dir=/usr' '--with-zlib' '--with-zlib-dir=/usr'

and this is the curl info:

libcurl/7.19.4 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

the info above was taken through phpinfo()

Dasha_V - old’s picture

Not sure if this is the same issue but this 2 lines are missed in fb_connect.module

define('FB_CONNECT_PATH_SESSION_START', 'fb_connect/session_start');
define('FB_CONNECT_PATH_SESSION_END', 'fb_connect/session_end');
msti’s picture

I added the lines above, but it makes no difference.
I guess this is needed, so i left it there.

Dave Cohen’s picture

I don't pretend to undestand the underlying problem here.

It seems that when curl is compiled in, as is the case with you, this timeout error is thrown. Personally, I have curl as a php extension loaded in php.ini. I don't experience this problem and have yet to reproduce it.

According to this guy (http://www.takwing.idv.hk/tech/fb_dev/phpsdk/learning_phpsdk_07.html), you might try replacing "api-read.facebook.com" with "api.facebook.com" in the library you downloaded from facebook.

If you try that, let us know whether it works. If you try anything else, please let us know that too.

msti’s picture

WOW! THANKS! You saved me. This fixed it!
Facebook developers must be causing u a lot of headaches! I admire you!

msti’s picture

Status: Active » Fixed

changing status to fixed

Dave Cohen’s picture

What fixed it, exactly? Did you change your php config or edit facebook.php?

msti’s picture

I edited the facebook.php

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

aangel’s picture

Changing facebook.php got rid of the error for me, too. Funny thing is that my install was working just fine until this error showed up, seemingly out of the blue.

Dang gremlins. Always causing trouble.

carsato’s picture

Hello

I had the same problem but the message was "unknow method".
I solved my problem by disabing the fb_register.module . In the description it says its deprecated. This module prevent account colisions with facebook. I can tell more, just disable this module. I hope this can help anyone.

Thank you and Drupal