Better error handling for Facebook.