wkhtmltopdf wkhtmltoimage: cannot connect to X server
I think you need to install xvfb (Virtual Framebuffer 'fake' X server):
apt-get install xvfb
Then in the terminal:
xvfb-run wkhtmltoimage --format png --quality 100 --no-debug-javascript --height 800 http://facebook.com/ fb.png