summaryrefslogtreecommitdiff
path: root/lib/facebookutil.php
diff options
context:
space:
mode:
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