fixed FB incompatibility with 'error' field in response

refactored FB fix
Merge pull request #241 from stloyd/bugfix/fb_error_msg

Fixed FB incompatibility with 'error' field in response