diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 119ee2f3e..8975d8e7a 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -112,9 +112,9 @@ function facebook_content(&$a) {
$o .= '
';
$o .= '' . t('Install Facebook posting') . '
';
+ . $a->get_baseurl() . '/facebook/' . $a->user['nickname'] . '&scope=publish_stream,read_stream,offline_access">' . t('Install Facebook post connector') . '
';
- $o .= '' . t('Remove Facebook posting') . '
';
+ $o .= '' . t('Remove Facebook post connector') . '
';
return $o;
@@ -123,15 +123,24 @@ function facebook_content(&$a) {
function facebook_install() {
register_hook('post_local_end', 'addon/facebook/facebook.php', 'facebook_post_hook');
register_hook('jot_networks', 'addon/facebook/facebook.php', 'facebook_jot_nets');
+ register_hook('plugin_settings', 'addon/facebook/facebook.php', 'facebook_plugin_settings');
}
function facebook_uninstall() {
unregister_hook('post_local_end', 'addon/facebook/facebook.php', 'facebook_post_hook');
unregister_hook('jot_networks', 'addon/facebook/facebook.php', 'facebook_jot_nets');
+ unregister_hook('plugin_settings', 'addon/facebook/facebook.php', 'facebook_plugin_settings');
}
+function facebook_plugin_settings(&$a,&$b) {
+
+ $b .= '