fix error path for facebook