Improving Facebook error handling