summaryrefslogtreecommitdiff
path: root/lib/facebookutil.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-11 07:03:59 +0000
committerZach Copley <zach@controlyourself.ca>2009-01-11 07:03:59 +0000
commit689be142158dae5af1516cb38b947f0364d725dd (patch)
tree5abdea40b707a4e84b12826e9dc295eb3867b616 /lib/facebookutil.php
parentf0436655c8644844b3f37d722a120df3b0727575 (diff)
trac750 - Facebook app now uses XMLWriter for output (much cleaner!)
Diffstat (limited to 'lib/facebookutil.php')
-rw-r--r--lib/facebookutil.php11
1 files changed, 11 insertions, 0 deletions
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