Skip to content

Instantly share code, notes, and snippets.

@armedoctopus
Created May 12, 2019 17:27
Show Gist options
  • Save armedoctopus/27c6914f84a1f39f989ccc6f13a2e765 to your computer and use it in GitHub Desktop.
Save armedoctopus/27c6914f84a1f39f989ccc6f13a2e765 to your computer and use it in GitHub Desktop.

Revisions

  1. armedoctopus created this gist May 12, 2019.
    24 changes: 24 additions & 0 deletions FacebookCommentPlugin.vue
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    <template>
    <div class="fb-comments" data-href="https://songxy.com/mastering" data-numposts="5" data-colorscheme="light" data-width="280px"></div>
    </template>

    <script>
    export default {
    name: 'FacebookComments',
    mounted(){
    this.init()
    },
    methods: {
    init () {
    if (window.FB) {
    window.FB.init({
    appId : 'xxxxxxxxxxxxxxx',
    status : true,
    xfbml : true,
    version : 'v3.3'
    })
    }
    }
    }
    }
    </script>