Closed (fixed)
Project:
Drupal for Facebook
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Jul 2010 at 18:00 UTC
Updated:
19 Jan 2011 at 19:57 UTC
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
Comment #1
Dave Cohen commentedAre 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.
Comment #2
mstiThis is the php configure command:
and this is the curl info:
the info above was taken through phpinfo()
Comment #3
Dasha_V - old commentedNot sure if this is the same issue but this 2 lines are missed in fb_connect.module
Comment #4
mstiI added the lines above, but it makes no difference.
I guess this is needed, so i left it there.
Comment #5
Dave Cohen commentedI 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.
Comment #6
mstiWOW! THANKS! You saved me. This fixed it!
Facebook developers must be causing u a lot of headaches! I admire you!
Comment #7
mstichanging status to fixed
Comment #8
Dave Cohen commentedWhat fixed it, exactly? Did you change your php config or edit facebook.php?
Comment #9
mstiI edited the facebook.php
Comment #11
aangel commentedChanging 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.
Comment #12
carsato commentedHello
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