react-facebook-login icon indicating copy to clipboard operation
react-facebook-login copied to clipboard

Why is the pop-up not closing after successfully logging in?

Open dalegacusan opened this issue 2 years ago • 1 comments

The pop-up does not close after a successful log-in. The pop-up stays open and you can browse your facebook content in the pop-up.


I'm developing in localhost:3000 with HTTPS=true set in package.json

import React, { useEffect } from 'react';
import { ButtonProps } from '@mantine/core';
import FacebookLogin from '@greatsumini/react-facebook-login';

export function FacebookButton(props: ButtonProps<'button'>) {
  return (
    <FacebookLogin
      appId=''
      onSuccess={(response) => {
        console.log('Login Success!', response);
      }}
      onFail={(error) => {
        console.log('Login Failed!', error);
      }}
      onProfileSuccess={(response) => {
        console.log('Get Profile Success!', response);
      }}
    />
  );
}

dalegacusan avatar Jun 12 '22 06:06 dalegacusan

@dalegacusan Could you provide a minimal repository which reproduces this issue?

greatSumini avatar Jun 13 '22 09:06 greatSumini