GTNPORTAL-3092 Improve error handling in Facebook code request