From: Zach Copley Date: Thu, 30 Jul 2009 19:34:32 +0000 (+0000) Subject: Attempt to reduce the number of calls to FB to speed things up X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dcfb91ea8ba784ff3f57e73504003a0c2915f1d1;p=quix0rs-gnu-social.git Attempt to reduce the number of calls to FB to speed things up --- diff --git a/plugins/FBConnect/FBConnectPlugin.php b/plugins/FBConnect/FBConnectPlugin.php index 2e32ad198f..6788793b25 100644 --- a/plugins/FBConnect/FBConnectPlugin.php +++ b/plugins/FBConnect/FBConnectPlugin.php @@ -122,9 +122,7 @@ class FBConnectPlugin extends Plugin FB_RequireFeatures( ["XFBML"], function() { - FB.init("%s", "../xd_receiver.html", - {"doNotUseCachedConnectState":true }); - + FB.init("%s", "../xd_receiver.html"); } ); } @@ -222,7 +220,7 @@ class FBConnectPlugin extends Plugin try { $facebook = getFacebook(); - $fbuid = $facebook->api_client->users_getLoggedInUser(); + $fbuid = $facebook->get_loggedin_user(); } catch (Exception $e) { common_log(LOG_WARNING,