Yos
Yos

Reputation: 469

Facebook like button - cannot add "share it on facebook with a comment"

Problem on facebook like button html :

Facebook is showing here

That you can add a like button to your site that allows users to also add a comment right after clicking on the "LIKE" button.

From some reason, when I try that html on my site, it doesn't work.

My site is public and I also got the required META tags inside my html.

Help, anyone ?

Upvotes: 0

Views: 1390

Answers (1)

daaku
daaku

Reputation: 2807

Commenting currently only works with the XFBML version:

<fb:like></fb:like>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
  FB.init({ appId: 'YOUR APP ID', xfbml: true });
</script>

Or starting Wednesday (new feature not yet released) the simpler version:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>
<fb:like></fb:like>

NOTE: You only need one set of the script tags, and you can add as many <fb:like> or other XFBML widgets after that.

Upvotes: 2

Related Questions