aboutsummaryrefslogtreecommitdiffstats
path: root/addon/facebook
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2010-12-27 23:36:19 -0800
committerFriendika <info@friendika.com>2010-12-27 23:36:19 -0800
commit76d92d3f6249845f5eaba573083aba0f99755afc (patch)
treee82fa9ea696d7572527ce8bc7419530d9ecd89d1 /addon/facebook
parentcaf93fffac2aa87966bfafdc8bd7adfd3a07dce8 (diff)
downloadvolse-hubzilla-76d92d3f6249845f5eaba573083aba0f99755afc.tar.gz
volse-hubzilla-76d92d3f6249845f5eaba573083aba0f99755afc.tar.bz2
volse-hubzilla-76d92d3f6249845f5eaba573083aba0f99755afc.zip
doco on state of FB connector
Diffstat (limited to 'addon/facebook')
-rw-r--r--addon/facebook/facebook.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index df2f86d3a..fbe4b31e6 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -1,5 +1,15 @@
<?php
+/**
+ * This module needs a lot of work.
+ *
+ * - setting/storing preferences
+ * - documentation on how to obtain FB API keys for your site
+ * - ensuring a valid FB login session
+ * - requesting permissions within the FB login session to post on your behalf until permission revoked.
+ *
+ */
+
function facebook_install() {
register_hook('post_local_end', 'addon/facebook/facebook.php', 'facebook_post_hook');
@@ -38,7 +48,7 @@ function facebook_post_hook(&$a,&$b) {
'cookie' => true
));
try {
- $statusUpdate = $facebook->api('/me/feed', 'post', array('message'=> bbcode($datarray['body']), 'cb' => ''));
+ $statusUpdate = $facebook->api('/me/feed', 'post', array('message'=> bbcode($b['body']), 'cb' => ''));
}
catch (FacebookApiException $e) {
notice( t('Facebook status update failed.') . EOL);