Facebook api support

Fix #215 

This is good to go for now, I'll test it with your branch and fix any small issues.