keppelen / react-facebook-login

A Component React for Facebook Login
1.19k stars 405 forks source link

Error: 'undefined is not a function', on chrome 36 #85

Closed neerav-mehta-olx closed 7 years ago

neerav-mehta-olx commented 7 years ago

On chrome version 36, 38, 39, getting an error, "undefined is not a function" and callback is not getting called. This error occurs after login into facebook. Looking at the issue it seems like it is not able to find the callback function when it is already defined. It is working fine on new chrome versions, 50,51,52,54

<FacebookLogin textButton="LOGIN WITH FACEBOOK" cssClass="tUpper action-button" icon="fa-facebook-official" appId={Application.settings.facebookAppId} autoLoad={false} fields="name,email,picture" callback={this.responseFacebook.bind(this)} onFailure={function(error) { console.log('error '+ error); } } />`

keppelen commented 7 years ago

@neerav-mehta-olx

<FacebookLogin
  textButton="LOGIN WITH FACEBOOK"
  cssClass="tUpper action-button"
  icon="fa-facebook-official"
  appId={Application.settings.facebookAppId}
  autoLoad={false}
  fields="name,email,picture"
  callback={this.responseFacebook}
  onFailure={(error) => console.log(`error ${error}`) }
/>