summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/facebookhome.php2
-rw-r--r--actions/facebooksettings.php8
2 files changed, 7 insertions, 3 deletions
diff --git a/actions/facebookhome.php b/actions/facebookhome.php
index 069ea5e75..6206fb6c2 100644
--- a/actions/facebookhome.php
+++ b/actions/facebookhome.php
@@ -75,7 +75,7 @@ class FacebookhomeAction extends FacebookAction
$flink_id = $flink->insert();
if ($flink_id) {
- echo '<fb:success message="You can now use the Identi.ca from Facebook!" />';
+ echo '<fb:success message="You can now use Identi.ca from Facebook!" />';
}
$this->show_home($facebook, $fbuid, $user);
diff --git a/actions/facebooksettings.php b/actions/facebooksettings.php
index 469bcfc45..d28b1aa5c 100644
--- a/actions/facebooksettings.php
+++ b/actions/facebooksettings.php
@@ -69,10 +69,12 @@ class FacebooksettingsAction extends FacebookAction
$fbml = '<fb:if-section-not-added section="profile">'
.'<h2>Add an Identi.ca box to my profile</h2>'
- .'<fb:add-section-button section="profile"/>'
+ .'<p><fb:add-section-button section="profile"/></p>'
.'</fb:if-section-not-added>';
- $fbml .= '<fb:prompt-permission perms="status_update"><h2>Allow Identi.ca to update my Facebook status</h2></fb:prompt-permission>';
+ $fbml .= '<p><fb:prompt-permission perms="status_update"><h2>Allow Identi.ca to update my Facebook status</h2></fb:prompt-permission></p>';
+
+ if ($facebook->api_client->users_hasAppPermission('status_update')) {
$fbml .= '<form method="post" id="facebook_settings">'
.'<h2>Sync preferences</h2>'
@@ -101,6 +103,8 @@ class FacebooksettingsAction extends FacebookAction
.'</p>'
.'</form>';
+ }
+
echo $fbml;
$this->show_footer();