如何在Handlebars模板中实现facebook like按钮?

时间:2014-08-06 15:54:03

标签: facebook templates facebook-like handlebars.js

fb js sdk FB.init已经在index.php中执行,然后导航到以下模板页面。

LikeGate.hbs

<section class="likeGate">
    <p>Please Like the page to continue</p>
    blah<div class="fb-like" data-href="https://www.facebook.com/pages/Test/foo?sk=bar" data-layout="standard" data-action="like" data-show-faces="false" data-share="false"></div>
</section>

0 个答案:

没有答案