DEV Community

Discussion on: Adding Facebook Login to your Ionic app (in 15 minutes)

Collapse
 
jhourlad profile image
Jhourlad Estrella

Hi, thanks for the tutorial.

Can you please point out which part renders the actual button? It looks like it's just basically the facebookLogin() method but nothing seem to use use it.

Thanks in advanced.

Collapse
 
fvaldes33 profile image
Franco Valdes

The button is rendered by the html page.

@Component({
  selector: 'app-tab1',
  templateUrl: 'tab1.page.html', // <- here
  styleUrls: ['tab1.page.scss']
})
Enter fullscreen mode Exit fullscreen mode

Don't have this repo anymore but it would look something like this.

<button (click)="facebookLogin()">FB Login</button>
Enter fullscreen mode Exit fullscreen mode