Fix bugs with no redirect_uri for Facebook oAuth