summaryrefslogtreecommitdiff
path: root/plugins/Facebook
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-05-24 22:41:34 +0000
committerZach Copley <zach@status.net>2010-05-24 22:41:34 +0000
commit1f3a16bbfb41b366bea05f5ba05bb41f44108ab8 (patch)
treee9c0875771c5744838b69dccd05078605a5f769c /plugins/Facebook
parent777ca74500025c616ae689f9a92b3233cf8466f7 (diff)
Clear up warnings I introduced by refactoring Facebook posting
Diffstat (limited to 'plugins/Facebook')
-rw-r--r--plugins/Facebook/facebookutil.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/Facebook/facebookutil.php b/plugins/Facebook/facebookutil.php
index e52a3deae..d573c34ac 100644
--- a/plugins/Facebook/facebookutil.php
+++ b/plugins/Facebook/facebookutil.php
@@ -147,7 +147,7 @@ function facebookBroadcastNotice($notice)
common_debug(
"FacebookPlugin - $user->nickname ($user->id), Facebook UID: $fbuid "
.'does NOT have status_update permission. Facebook '
- . 'returned: ' . var_export($can_publish, true)
+ . 'returned: ' . var_export($canPublish, true)
);
}
@@ -297,8 +297,6 @@ function publishStream($notice, $user, $fbuid)
$fbuid
);
- common_debug('Facebook returned: ' . var_export($result, true));
-
common_log(
LOG_INFO,
"FacebookPlugin - Posted notice $notice->id as a stream "
@@ -307,7 +305,6 @@ function publishStream($notice, $user, $fbuid)
);
}
-
function formatNotice($notice, $user, $fbuid)
{
// Get the status 'verb' the user has set, if any
@@ -350,6 +347,8 @@ function updateProfileBox($facebook, $flink, $notice, $user) {
$flink
);
+ $fbuid = $flink->foreign_id;
+
common_debug(
'FacebookPlugin - Attempting to update profile box with '
. "content from notice $notice->id for $user->nickname ($user->id)"