keppelen / react-facebook-login

A Component React for Facebook Login
1.18k stars 406 forks source link

TypeError: window.FB.login is not a function #349

Open longtkhd opened 2 years ago

longtkhd commented 2 years ago

I'm trying to use react-facebook-login but when click on icon, nothing happened. It just appear an error : Uncaught TypeError: window.FB.login is not a function. Screen Shot 2022-08-10 at 15 51 55

enyelsequeira commented 1 year ago

did you ever got around this? @longtkhd

bebru2k1 commented 1 year ago

same issue

longtkhd commented 1 year ago

<FacebookLogin appId={FACEBOOK_APP_ID} autoLoad={false} callback={responseFacebook} fields="name,email,picture" scope="public_profile,user_friends,user_actions.books" render={(renderProps: any) => ( <SvgIcon onClick={() => renderProps.onClick()} component={Facebook} inheritViewBox fontSize="small" style={{ color: '#616161', cursor: 'pointer' }} /> )} /> I don't remember how I fixed it but this code work for me. May be you guys should recheck the url in facebook developer settings. You guys may missed some url or config.

longtkhd commented 1 year ago

did you ever got around this? @longtkhd

I think the problem is missed config in facebook develop setting.