I've installed the module and configured as per the instructions. The result is that every page load goes up from 300-400 ms to 1.5 to 10 seconds depending on what the network connection to facebook is at any time. I ran xhprof to discover that it was the curl connection to facebook.

Is this normal or am I doing something wrong?

Comments

Dave Cohen’s picture

I believe the fb_devel.module block is probably the cause. Try disabling fb_devel.module.

With that disabled, there should be one curl request made to facebook per session. In other words, just one when you first connect. Apps might call into facebook more often, but the core modules should do it only once per session.

davidarthur’s picture

Status: Active » Closed (works as designed)

You're spot on, thanks for that. It does say it has a performance hit.

Closing this issue.

kuldeep_kumar’s picture

Title: Waiting for facebook on every page load is slow » drupal for facebook module makes my site is slow
Priority: Normal » Major

i am using drupal for facebook module and after enabling this module my sites performance is too much slow
functionality of fbconnect is working properly but there are some errors are occurs which is given bleow

Failed to learn full name of new user: connect() timed out! 28. (logged into facebook as 100002685638686)
Failed to query facebook user info: couldn't connect to host 7. (logged into facebook as 100002685638686)
Failed to query facebook user info: couldn't connect to host 7. (logged into facebook as 100002685638686)

please help me

kuldeep_kumar’s picture

one more problem is generate on using this module

Failed to get application properties (msys) from Facebook: fb_call_method failed calling admin.getAppProperties. Connection timed out -110

kuldeep_kumar’s picture

after save the facebook application settings i got too much error given below

Failed to get application properties (msys) from Facebook: fb_call_method failed calling admin.getAppProperties. Connection timed out -110
Unable to get application properties. Possibly, you've given the wrong id or secret. Possibly, this server is unable to reach facebook's servers. Your application will not work properly!
Failed to get application properties (msys) from Facebook: fb_call_method failed calling admin.getAppProperties. Connection timed out -110
Failed to set the following properties for msys application. You may need to manually editing remote settings!
Array
(
[uninstall_url] => http://192.168.0.8/TRAINING/KuldeepKumar/msys/fb_app/event/msys/post_rem...
[authorize_url] => http://192.168.0.8/TRAINING/KuldeepKumar/msys/fb_app/event/msys/post_aut...
[callback_url] => http://192.168.0.8/TRAINING/KuldeepKumar/msys/fb_cb/213046595411518/
[connect_url] => http://192.168.0.8/TRAINING/KuldeepKumar/msys/
)
Failed to set application properties on Facebook: fb_call_method failed calling admin.setAppProperties. Connection timed out -110
Failed to get application properties (msys) from Facebook: fb_call_method failed calling admin.getAppProperties. Connection timed out -110

Dave Cohen’s picture

Title: drupal for facebook module makes my site is slow » Waiting for facebook on every page load is slow
Priority: Major » Normal

Looks like your server cannot reach facebook.com. Maybe because of a firewall? You'll have to fix that if you want the modules to work.

Also do not post to closed issues, better to open a new issue.

masoom2206’s picture

Dear Dave Cohen

I am new in drupal and I have just do as you have suggested like disable fb_devel.module.
But I have still facing that my site gating very slow when connection with facebook.
What I did, Please suggest

Masoom

mayur.pimple’s picture

Hi
Facing same problem ,

but there are some errors are occurs which is given below ,

Failed to query facebook user info: couldn't connect to host 7. (logged into facebook as 0)

Failed to get application properties (flexb) from Facebook: fb_call_method failed calling admin.getAppProperties. Connection timed out -110

luksak’s picture

Version: 6.x-3.0-rc1 » 7.x-3.x-dev
Status: Closed (works as designed) » Active

I am having the same issue on D7.

On a node page my site takes 400ms to load without fb. With fb enabled it is around 1700.

No errors are logged.

luksak’s picture

This patch improved my performance by three times:

http://drupal.org/node/1188256#comment-6828868

But it's still pretty bad.