From 1a8869424b9640a1d6a689e7882f04c757f78b38 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Sun, 7 Dec 2008 20:54:12 -0500 Subject: trac750 Use Facebook dialogs for success and error messages during initial setup / login darcs-hash:20081208015412-7b5ce-c899a3b743621f7d003b93f383b78a2c8ba9fb52.gz --- lib/facebookaction.php | 56 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 53 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/facebookaction.php b/lib/facebookaction.php index 8872934aa..d5f0adbb8 100644 --- a/lib/facebookaction.php +++ b/lib/facebookaction.php @@ -33,6 +33,56 @@ class FacebookAction extends Action { return new Facebook($apikey, $secret); } + function update_profile_box($facebook, $fbuid, $user) { + + $notice = $user->getCurrentNotice(); + + # Need to include inline CSS for styling the Profile box + + $style = ''; + + $html = $this->render_notice($notice); + + $fbml = "$content $html"; + $fbml .= "$content $html"; + + $fbml_main = "$content $html"; + + $facebook->api_client->profile_setFBML(NULL, $fbuid, $fbml, NULL, NULL, $fbml_main); + } # Display methods @@ -180,14 +230,14 @@ class FacebookAction extends Action { return $html; } - + function pagination($have_before, $have_after, $page, $fbaction, $args=NULL) { $html = ''; if ($have_before || $have_after) { $html = '