From 689be142158dae5af1516cb38b947f0364d725dd Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Sun, 11 Jan 2009 07:03:59 +0000 Subject: trac750 - Facebook app now uses XMLWriter for output (much cleaner!) --- lib/facebookutil.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/facebookutil.php') diff --git a/lib/facebookutil.php b/lib/facebookutil.php index fc0e41e5b..e844dd09a 100644 --- a/lib/facebookutil.php +++ b/lib/facebookutil.php @@ -18,6 +18,9 @@ */ require_once(INSTALLDIR.'/extlib/facebook/facebook.php'); +require_once(INSTALLDIR.'/lib/noticelist.php'); + +define("FACEBOOK_SERVICE", 2); // Facebook is foreign_service ID 2 // Gets all the notices from users with a Facebook link since a given ID function get_facebook_notices($since) @@ -38,3 +41,11 @@ function get_facebook() $secret = common_config('facebook', 'secret'); return new Facebook($apikey, $secret); } + +function start_fbml($indent = true) +{ + global $xw; + $xw = new XMLWriter(); + $xw->openURI('php://output'); + $xw->setIndent($indent); +} \ No newline at end of file -- cgit v1.2.3-54-g00ecf