When attempting to integrate the JavaScript SDK into Vuejs by utilizing a Facebook login button, I encountered an issue:
<template>
<div>
<div class="fb-login-button" data-max-rows="1" data-size="large" data-button-type="login_with" data-show-faces="false" data-auto-logout-link="true" data-use-continue-as="false" onlogin="checkLoginState();">
</div>
</div>
</template>
<script>
export default {
data() {
return: { }
},
methods: {
checkLoginState: function() {
console.log("logged")
}
}
}
</script>
Despite implementing this code, I am unable to observe any results. How can I address and rectify this issue?