Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne]facebook comment box
lobopol
post
Post #1





Grupa: Zarejestrowani
Postów: 1 729
Pomógł: 346
Dołączył: 4.04.2009

Ostrzeżenie: (0%)
-----


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


--------------------
Go to the top of the page
+Quote Post

Posty w temacie
- lobopol   [inne]facebook comment box   13.05.2011, 11:07:27


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 16:58