Problem using FB tags

Apr 21, 2010 at 11:36 PM
Edited Apr 21, 2010 at 11:38 PM
hi all i am having an issue with FB tags i can get them working on my index.php page however my problem starts when i try to show them on my dynamic page. here is the code i am using. ****the ajax page change request**** function load_page(url,container,title) { var oldHTML=document.getElementById(container).innerHTML; document.getElementById(container).innerHTML="

"; var xhr = createXMLHttpRequest(); xhr.onreadystatechange=function(){ if (xhr.readyState == 4){ if(xhr.status>=200 && xhr.status<300){ document.getElementById(container).innerHTML=xhr.responseText; if(title){ document.title="name here - "+title; } }else if(xhr.status==40){ document.getElementById(container).innerHTML=""; alert("Page cant be found on server, contact Developers."); document.getElementById(container).innerHTML=oldHTML; }else{ document.getElementById(container).innerHTML=""; alert("Something did not work right, try again latter.\nContact Developers if problem persists"); document.getElementById(container).innerHTML=oldHTML; } } }'GET', url, true) xhr.send(); } example code for my links: Test if i was to use a standard link eg test all the fb tags work in that page- however my issue is that i want to have dynamic links so it only loads the div area with the new data. is there anyway i can get my dynamic pages working with FB tags? here is 2 sample fb tag i am using - both work on the index page or standard links. <head> </head> <body>
<script> window.fbAsyncInit = function() { FB.init({ appId: "????????", xfbml: true, cookie: true, status: true }); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//'; document.getElementById('fb-root').appendChild(e); }()); </script> <fb:fan profile_id="??????????" stream="0" connections="10" logobar="1" width="300"></fb:fan>
name here on Facebook
<fb:name uid="loggedinuser" useyou="false" linked="true"></fb:name> </body>