aboutsummaryrefslogtreecommitdiffstats
path: root/addon/facebook/facebook.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-02-12 05:07:24 -0800
committerFriendika <info@friendika.com>2011-02-12 05:07:24 -0800
commit89cbd17c721dae57b18686fd7f3e5f8c74a279d9 (patch)
treeeee6bc94d474e327a233c7053beb46d33036a65d /addon/facebook/facebook.php
parent4081ebe6c5f4e36f7b4ef288005995d959633fce (diff)
downloadvolse-hubzilla-89cbd17c721dae57b18686fd7f3e5f8c74a279d9.tar.gz
volse-hubzilla-89cbd17c721dae57b18686fd7f3e5f8c74a279d9.tar.bz2
volse-hubzilla-89cbd17c721dae57b18686fd7f3e5f8c74a279d9.zip
more fb debug msgs
Diffstat (limited to 'addon/facebook/facebook.php')
-rw-r--r--addon/facebook/facebook.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/addon/facebook/facebook.php b/addon/facebook/facebook.php
index 93e7962c3..7bebb3b4f 100644
--- a/addon/facebook/facebook.php
+++ b/addon/facebook/facebook.php
@@ -149,6 +149,7 @@ function facebook_jot_nets(&$a,&$b) {
}
function facebook_post_local(&$a,&$b) {
+
if(! local_user())
return;
@@ -175,17 +176,20 @@ function facebook_post_hook(&$a,&$b) {
if($appid && $secret) {
+ logger('facebook: have appid+secret');
+
$fb_post = intval(get_pconfig(local_user(),'facebook','post'));
$fb_enable = intval(get_pconfig(local_user(),'facebook','enable'));
$fb_token = get_pconfig(local_user(),'facebook','access_token');
if($fb_post && $fb_token && $fb_enable) {
+ logger('facebook: able to post');
require_once('library/facebook.php');
require_once('include/bbcode.php');
$msg = $b['body'];
- logger('Facebook post2: msg=' . $msg, LOGGER_DATA);
+ logger('Facebook post: original msg=' . $msg, LOGGER_DATA);
// make links readable before we strip the code