Facebook sign in with voucher - working but a refactor needed