From ab2be76ba99df6f4329f683be92e609defb8aea8 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 1 May 2010 17:14:16 -0400 Subject: [PATCH] This isn't the login url, it's the extended perms url for infinite sessions --- horde/lib/Prefs/Ui.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/horde/lib/Prefs/Ui.php b/horde/lib/Prefs/Ui.php index b3e89beb9..759c8fef4 100644 --- a/horde/lib/Prefs/Ui.php +++ b/horde/lib/Prefs/Ui.php @@ -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']); -- 2.11.0