updated facebook platform to handle itself more responsibly, working example in the demo page now