This is my first time to play with Vue.js but I need to use Facebook SDK for login.
Many documents emphasize that the Facebook SDK must first be loaded asynchronously.
I know there are a couple of Q&As on this topic at StackOverflow, but my case differs.
Using the
created
method while creating a new Vue instance
I cannot use this option because I'm using vue-router and only one component will use Facebook SDK for login.Using
nuxt.js
I don't know much about Vue.js yet. Trying nuxt.js seems like opening up a whole new can of worms.
Is there any example of loading Facebook SDK asynchronously in a Vue.js single-file component?