This isn't the login url, it's the extended perms url for infinite sessions
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 1 May 2010 21:14:16 +0000 (17:14 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 1 May 2010 21:14:16 +0000 (17:14 -0400)
horde/lib/Prefs/Ui.php

index b3e89be..759c8fe 100644 (file)
@@ -523,7 +523,9 @@ class Horde_Prefs_Ui
                 $notify->push(_("Temporarily unable to connect with Facebook, Please try again."), 'horde.alert');
             }
             /* URL links */
-            $url = $facebook->auth->getLoginUrl(Horde::url('services/facebook.php', true));
+            $url = $facebook->auth->getExtendedPermUrl(
+                Horde_Service_Facebook_Auth::EXTEND_PERMS_OFFLINE,
+                Horde_Util::addParameter(Horde::url('services/facebook.php', true), 'action', 'authsuccess'));
             $t->set('authUrl', Horde::signQueryString($url));
             $t->set('have_session', true);
             $t->set('user_pic_url', $user_info[0]['pic_with_logo']);