modified fb authenticate