Fix for Facebook registration