Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Facebook comment box widget

ProsperProsper ✭✭
edited January 2017 in Vanilla 2.0 - 2.8

Can Facebook comment box widget ( be added on vanilla forum to encourage visitors already loggin on Facebook to comment?

If this possible, please can someone develop the plugin for vanilla forum?

Avoiding JavaScript and CSS in the development will be good in other not to compromise the speed of vanilla forum.


  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP
    edited January 2017

    You can't avoid JS or CSS...

    Just use the Widgets plugin to add the code or add this to the default.master.tpl in the section you want the widget to appear panel or content. Change the url to reflect your actual site.

        <div id="fb-root"></div>
        {literal}<script>(function(d, s, id) {
          var js, fjs = d.getElementsByTagName(s)[0];
          if (d.getElementById(id)) return;
          js = d.createElement(s); = id;
          js.src = "//";
          fjs.parentNode.insertBefore(js, fjs);
        }(document, 'script', 'facebook-jssdk'));</script>{/literal}
    <div class="fb-comments" data-href="" data-width="100%" data-numposts="5"></div>
  • Options

    @vrijvlinder - thanks but the same comments appear for all discussion topics. Please can you modify the code so that each discussion will have its own comment(s)?

  • Options
    vrijvlindervrijvlinder Papillon-Sauvage MVP

    No sorry, Vanilla IS the software for comments and discussions NOT facebook. If you want that, you need to develop it. I personally hate facebook and everything they do. But if you love it and feel you need it, then I suggest you learn how to do what you want, which is basically to turn Vanilla into facebook.

Sign In or Register to comment.