diff --git a/actions/facebookhome.php b/actions/facebookhome.php
index b58110bcc8..b261e6a8c3 100644
--- a/actions/facebookhome.php
+++ b/actions/facebookhome.php
@@ -137,8 +137,9 @@ class FacebookhomeAction extends FacebookAction {
echo '
';
- common_pagination($page > 1, $cnt > NOTICES_PER_PAGE,
- $page, 'all', array('nickname' => $user->nickname));
+ $this->pagination($page > 1, $cnt > NOTICES_PER_PAGE,
+ $page, 'index.php', array('nickname' => $user->nickname));
+
}
@@ -147,13 +148,49 @@ class FacebookhomeAction extends FacebookAction {
$notice = $user->getCurrentNotice();
+ # Need to include CSS for styling the Profile box
+
+ $style = '';
+
$html = $this->render_notice($notice);
- $fbml = "$html";
- $fbml .= "$html";
-
- $fbml_main = "$html";
+ $fbml = "$content $html";
+ $fbml .= "$content $html";
+ $fbml_main = "$content $html";
$facebook->api_client->profile_setFBML(NULL, $fbuid, $fbml, NULL, NULL, $fbml_main);
diff --git a/actions/facebooksettings.php b/actions/facebooksettings.php
index 3855a0c29a..4d7000d605 100644
--- a/actions/facebooksettings.php
+++ b/actions/facebooksettings.php
@@ -35,9 +35,15 @@ class FacebooksettingsAction extends FacebookAction {
$fbuid = $facebook->require_login();
+ $fbml = ''
+ .'Add an Identi.ca box to your profile!
'
+ .''
+ .'';
+
+
$this->show_header('Settings');
- echo 'Coming soon...
';
+ echo $fbml;
$this->show_footer();
diff --git a/lib/facebookaction.php b/lib/facebookaction.php
index 5505a12c38..8872934aae 100644
--- a/lib/facebookaction.php
+++ b/lib/facebookaction.php
@@ -38,7 +38,7 @@ class FacebookAction extends Action {
function show_header($selected ='Home') {
- # $header = '';
+ $header = '';
# $header .='';
$header .= '';
@@ -180,6 +180,50 @@ class FacebookAction extends Action {
return $html;
}
+
+ function pagination($have_before, $have_after, $page, $fbaction, $args=NULL) {
+ $html = '';
+ if ($have_before || $have_after) {
+ $html = '