Add test suite for lib/facebook.js.

`lib/facebook.js` was added in #563 but lacked a test suite, so I am adding one in this pull request.