Facebook Login with Cognito using AWS Amplify


#22

I’m trying to convert this example code to use Vue.js. So far so good… however, I’m unsure how to convert this line and it’s purpose:

  this.props.onLogin(response);

Any ideas?

Cliff


#23

That’s awesome. It would be great if you can share it with us and we’ll post a link to it for everybody else.

That line is basically a callback that a parent component can use once the login is completed. In our case we simply flag the app state as the user has logged in.


#24

Hi Jay!
Thank you for your great effort! I’ve successfully implemented the Facebook button.
However, once I’m logged in and hit the ‘refresh’ button in the browser I get a blank screen which can only removed after

  1. Deleting all Browser Data
  2. Logging in again.
    Do you have any idea what could cause this issue?
    Cheers,
    Mario

#25

Awesome, thank you for this chapter! It would be very helpful to see a Google example, as the AWS Amplify documentation on this is horrible. Much appreciated!