I have a component that show a login button or username of the user from facebook. depends if he is logged in or not.
Now in this component I use the
I was searching forever for a answer to this.
Thanx to vbranden's comment I was able to get it working for me.
What you have to do is initialise the facebook sdk in the created method. Then call the login from inside the fbAsyncInit function.
Here's what worked for me: