hej ludzie, pomóżcie mam dwa kody js które musze koniecznie użyć, ale się gryzą i co odświeżenie strony to inne działanie, jak je ze sobą "pogodzić"?

  1. <script type="text/javascript" src="http://connect.facebook.net/pl_PL/all.js"></script>
  2. <script type="text/javascript">
  3. FB.init({
  4. appId : \'232839340184355\',
  5. status : true, // check login status
  6. cookie : true, // enable cookies to allow the server to access the session
  7. xfbml : true // parse XFBML
  8. });
  9.  
  10. </script>



  1. <script type="text/javascript">
  2. <!--
  3. window.fbAsyncInit = function() {
  4. FB.init({appId: \'0\', status: true, cookie: true, xfbml: true});
  5. FB.Event.subscribe(\'edge.create\', function(href, widget) {
  6. // Do something, e.g. track the click on the "Like" button here
  7. //alert(\'You just liked \'+href);
  8. Action(1,\''.$row['Id_ad'].'\',\''.$row['Source'].'\');
  9. });
  10.  
  11. FB.Event.subscribe(\'edge.remove\', function(href, widget) {
  12. // Do something, e.g. track the click on the "Like" button here
  13. //alert(\'You just liked \'+href);
  14. Action(2,\''.$row['Id_ad'].'\',\''.$row['Source'].'\');
  15. });
  16.  
  17.  
  18.  
  19.  
  20. };
  21. (function() {
  22. var e = document.createElement(\'script\');
  23. e.type = \'text/javascript\';
  24. e.src = document.location.protocol + \'//connect.facebook.net/pl_PL/all.js\';
  25. e.async = true;
  26. document.getElementById(\'fb-root\').appendChild(e);
  27. }());
  28. //-->
  29. </script>


czy można do tego zastosować jquery noconflict?