Facebook: Improved error handling