Fix iOS cross origin problems
Fix going into analysis mode when Facebook connection gives an error