Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
longtkhd opened this issue Aug 10, 2022 · 4 comments
Open

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

longtkhd opened this issue Aug 10, 2022 · 4 comments

Comments

@longtkhd
Copy link

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
Copy link

did you ever got around this? @longtkhd

@bebru2k1
Copy link

same issue

@longtkhd
Copy link
Author

<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
Copy link
Author

did you ever got around this? @longtkhd

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants