[Vuejs]-Embedded Social Media Feeds Not Working On Nuxt Netlify Hosted (VUE)

0👍

This solution may be helpful: https://stackoverflow.com/a/39546590/8816585

Something like this

created() {
  (function(d, s, id){
   var js, fjs = d.getElementsByTagName(s)[0];
   if (d.getElementById(id)) {return;}
   js = d.createElement(s); js.id = id;
   js.src = "//connect.facebook.net/en_US/sdk.js";
   fjs.parentNode.insertBefore(js, fjs);
  }(document, 'script', 'facebook-jssdk'));
}

Otherwise, try out vue-facebook-page, it can be used with Nuxt too. The repo is a bit old but probably still working great.

Leave a comment