Jak wyłączyć przycisk like w
Kod
<fb:comments href="" num_posts="5" width="320" ></fb:comments>

i jak prawidłowo odebrać callbacka z dodawania komentarza z tego boksa
mam coś takiego:
  1. window.fbAsyncInit = function() {
  2. FB.init({appId: 'id_aplikacji', status: true, cookie: true, xfbml: true});
  3. FB.Event.subscribe('edge.create', function(response) {
  4. $.ajax({
  5. url: "<?php echo lib_url::make('ajax')?>",
  6. timeoutNumber: 2000,
  7. type: 'POST',
  8. data: "url="+response+"&type=1"
  9. });
  10. });
  11. FB.Event.subscribe('edge.remove', function(response) {
  12. $.ajax({
  13. url: "<?php echo lib_url::make('ajax')?>",
  14. timeoutNumber: 2000,
  15. type: 'POST',
  16. data: "url="+response+"&type=2"
  17. });
  18. });
  19. FB.Event.subscribe('comment.create', function(response) {
  20. $.ajax({
  21. url: "<?php echo lib_url::make('ajax')?>",
  22. timeoutNumber: 2000,
  23. type: 'POST',
  24. data: "url="+response+"&type=3"
  25. });
  26. });
  27. FB.Event.subscribe('comment.remove', function(response) {
  28. $.ajax({
  29. url: "<?php echo lib_url::make('ajax')?>",
  30. timeoutNumber: 2000,
  31. type: 'POST',
  32. data: "url="+response+"&type=4"
  33. });
  34. });
  35. };
  36. (function() {
  37. var e = document.createElement('script'); e.async = true;
  38. e.src = document.location.protocol + '//connect.facebook.net/pl_PL/all.js';
  39. document.getElementById('fb-root').appendChild(e);
  40. }());


Odbiór like działa poprawnie, tak samo usunięcie like, ale nie mogę złapać dodania komentarza/skasowania go