summaryrefslogtreecommitdiff
path: root/lib/facebookutil.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/facebookutil.php')
-rw-r--r--lib/facebookutil.php35
1 files changed, 2 insertions, 33 deletions
diff --git a/lib/facebookutil.php b/lib/facebookutil.php
index a2a2d7cb1..8454590d6 100644
--- a/lib/facebookutil.php
+++ b/lib/facebookutil.php
@@ -32,7 +32,8 @@ function getFacebookNotices($since)
'FROM notice ' .
'JOIN foreign_link ' .
'WHERE notice.profile_id = foreign_link.user_id ' .
- 'AND foreign_link.service = 2';
+ 'AND foreign_link.service = 2 ' .
+ 'ORDER BY notice.created DESC';
// XXX: What should the limit be?
return Notice::getStreamDirect($qry, 0, 100, 0, 0, null, $since);
@@ -45,38 +46,6 @@ function getFacebook()
return new Facebook($apikey, $secret);
}
-function startFBML($indent = true)
-{
- global $xw;
- $xw = new XMLWriter();
- $xw->openURI('php://output');
- $xw->setIndent($indent);
-}
-
-function getFacebookBaseCSS()
-{
- # Add a timestamp to the CSS file so Facebook cache wont ignore our changes
- $ts = filemtime(INSTALLDIR.'/theme/base/css/facebookapp.base.css');
- $cssurl = theme_path('css/facebookapp.base.css', 'base') . "?ts=$ts";
- return $cssurl;
-}
-
-function getFacebookThemeCSS()
-{
- # Add a timestamp to the CSS file so Facebook cache wont ignore our changes
- $ts = filemtime(theme_file('css/facebookapp.theme.css'));
- $cssurl = theme_path('css/facebookapp.theme.css') . "?ts=$ts";
- return $cssurl;
-}
-
-function getFacebookJS() {
-
- # Add a timestamp to the FBJS file so Facebook cache wont ignore our changes
- $ts = filemtime(INSTALLDIR.'/js/facebookapp.js');
- $jsurl = common_path('js/facebookapp.js') . "?ts=$ts";
- return $jsurl;
-}
-
function updateProfileBox($facebook, $flink, $notice) {
$fbaction = new FacebookAction($output='php://output', $indent=true, $facebook, $flink);
$fbaction->updateProfileBox($notice);