firefox tweet machine
JavaScript PHP
Latest commit 4b6bdbf Feb 20, 2013 Quodis Merge pull request #1 from chrismore/patch-1
Bug 841172 - Implement GA and remove WT
Failed to load latest commit information.
assets upgraded to jquery 1.5.2 and matching compression instructions in REA… Apr 15, 2011
lib fixes to how the ftm_config file is loaded Apr 15, 2011
unsupported completed unsupported browser page, misc changes to front-page Jul 7, 2010
.htaccess now denying access to cron.php via htaccess Apr 15, 2011
LICENSE.txt improved search query string escaping Dec 12, 2010
cron.php removed memcache ttl Apr 15, 2011
index.html Bug 841172 - Implement GA and remove WT Feb 20, 2013
manage.php removed memcache ttl Apr 15, 2011
proxy.php locked down proxy.php, updated readme Nov 2, 2010

Firefox Tweet Machine


  • PHP 5.2 ( with: php-curl, memcache )
  • Memcached
  • The app must be able to write to a ftm_config.yml in the app root dir


Setup is pretty straightforward, just download and extract the tarball from github to the web root dir.

Twitter OAuth

The management interface uses twitter oauth for authentication, currently the oauth consumer key and secret for the twitter application are set in lib/twitteroauth/secret.php, they'll have to be reset and removed from the repo before going into production. (also as a note: oauth callbacks will have to be changed to the final domain)

Upon first login a config file (ftm_config.yml) will be created in the root directory (the included .htaccess denies access to it) and assign the current twitter username to the allowed admins. It is up to that user to add more usernames to the comma allowed admins separated list in the management interface.


Every configuration field, except allowed admins and whitelisted username, has a hard coded default value, so the app should be up and running right after deployment unless the default values aren't appropriate ex: memcache host/port (localhost:11211)

set up cron job

/usr/bin/php $WEB_TOOT/cron.php >/dev/null 2>&1

remember to add the extension to you cli php.ini

minimize javascript

cd assets/js ; \
rm minimized.js ; \
java -jar ../misc/compiler.jar \
--js=jquery-1.5.2.min.js \
--js=box2d-min.js \
--js=preloadCssImages.jQuery_v5.js \
--js=jquery.timeago.js \
--js=raphael-min.js \
--js=jquery.colorbox-min.js \
--js=jquery.history.js \
--js=global.js \
--js=gauge.js \
--js=keyboard.js \
--js=preload.js \
--js=webtrends.js \