From 8dad87ea95275a1fa57424ca537eb25b701e1a2b Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Fri, 23 Jan 2009 04:23:44 +0000 Subject: trac750 FB script to update statuses working again with new uiredesign stuff --- lib/facebookutil.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib/facebookutil.php') diff --git a/lib/facebookutil.php b/lib/facebookutil.php index 7b3fd7b49..81737e4d5 100644 --- a/lib/facebookutil.php +++ b/lib/facebookutil.php @@ -18,6 +18,7 @@ */ require_once INSTALLDIR.'/extlib/facebook/facebook.php'; +require_once INSTALLDIR.'/lib/facebookaction.php'; require_once INSTALLDIR.'/lib/noticelist.php'; define("FACEBOOK_SERVICE", 2); // Facebook is foreign_service ID 2 @@ -25,7 +26,7 @@ define("FACEBOOK_NOTICE_PREFIX", 1); define("FACEBOOK_PROMPTED_UPDATE_PREF", 2); // Gets all the notices from users with a Facebook link since a given ID -function get_facebook_notices($since) +function getFacebookNotices($since) { $qry = 'SELECT notice.* ' . 'FROM notice ' . @@ -37,7 +38,7 @@ function get_facebook_notices($since) return Notice::getStreamDirect($qry, 0, 100, 0, 0, null, $since); } -function get_facebook() +function getFacebook() { $apikey = common_config('facebook', 'apikey'); $secret = common_config('facebook', 'secret'); @@ -76,3 +77,8 @@ function getFacebookJS() { return $jsurl; } +function updateProfileBox($facebook, $flink, $notice) { + $fbaction = new FacebookAction($output='php://output', $indent=true, $facebook, $flink); + $fbaction->updateProfileBox($notice); +} + -- cgit v1.2.3-54-g00ecf