]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Attempt to reduce the number of calls to FB to speed things up
authorZach Copley <zach@controlyourself.ca>
Thu, 30 Jul 2009 19:34:32 +0000 (19:34 +0000)
committerZach Copley <zach@controlyourself.ca>
Thu, 30 Jul 2009 19:34:32 +0000 (19:34 +0000)
plugins/FBConnect/FBConnectPlugin.php

index 2e32ad198fa20607ad042e4b2729b7a822ae8758..6788793b25c6bd4ddd066802007a8db33a7d1a23 100644 (file)
@@ -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,