summaryrefslogtreecommitdiff
path: root/lib/facebookutil.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-18 06:12:47 +0000
committerZach Copley <zach@controlyourself.ca>2009-01-18 06:12:47 +0000
commit8fdf888edbd74e707d2698c7625dc90b22f0aeef (patch)
tree72af2801ce38ae37064e9f14a3bf47597d0d963f /lib/facebookutil.php
parent3e18c2f0f8bbab01e16f66254dc9eadc9e1ffd60 (diff)
trac750 Javascript file for Facebook app
Diffstat (limited to 'lib/facebookutil.php')
-rw-r--r--lib/facebookutil.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/facebookutil.php b/lib/facebookutil.php
index 532e9c9d7..61469b3c6 100644
--- a/lib/facebookutil.php
+++ b/lib/facebookutil.php
@@ -105,7 +105,7 @@ function update_profile_box($facebook, $fbuid, $user, $notice)
$facebook->api_client->profile_setFBML(null, $fbuid, $fbml, null, null, $fbml_main);
}
-function get_facebook_css()
+function getFacebookCSS()
{
# Add a timestamp to the CSS file so Facebook cache wont ignore our changes
$ts = filemtime(theme_file('facebookapp.css'));
@@ -113,6 +113,14 @@ function get_facebook_css()
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;
+}
+
class FacebookNoticeList extends NoticeList
{