There is now a (very) basic Facebook support in the Mercurial repo. It depends on htmlunit and json.