Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Facebook's debug.js (what gets minified into all.js), updated every 10 minutes
JavaScript Shell
Branch: master

Facebook JS SDK, tracked and de-minified

This project aims to provide a useful resource to developers who are working with Facebook's JS SDK and would like to see what has changed recently.

My server runs a cronjob every 10 minutes that downloads the latest, commits any changes, and then pushes to github.

(debug.js is the non-minified version of that you're probably using in production.)

The script does not commit if only the timestamp at the top has changed.


To run your own copy (which I recommend), you'll need to fork the github project, test the shell script, and then set up cronjob like so:

# m h dom mon dow command
0 5 * * * /home/nfriedly/facebook/connect-js/ > /dev/null

This setup sends an email if there were errors, but not if everything worked successfully.

Setup on Heroku

This script works well on a free Heroku instance. Put your github username and password in environmental variables like so:

heroku config:add GH_USER=<username>
heroku config:add GH_PASS=<password>

Then add the Heroku Scheduler addon and create a task that runs ./ as often as you'd like.

Official FB links

Documentation for the JavaScript SDK:

Bug Tracker:

Recent Changes & Current Status:

Upcomming & Long-term Changes:

To Do

  • Track individual components (init.js, json.js, xfbml.js, etc)
  • Keep a copy of the minified file in addition to debug.js
  • Track the xdm.swf file
  • Track the beta js
  • Figure out how to get error notifications if the heroku process fails


Credit for the idea goes to Roger Hu -

The shell scripts are copyright Nathan Friedly and released under an MIT License.

The JS is copyright Facebook, Inc. and released under an Apache 2.0 License

Something went wrong with that request. Please try again.