I want to show the Facebook Like Like plugin and other FB code on the loaded ajax page.
When I upload it to a regular html page, it works as it should, but when I try to put it on the ajax download page , it only downloads the first time , when I click on the link to download the page a second time, when the page does not load ? This is only a page load if I clear the cache.
The index file initializes the fb code.
FB.init({ appId : '277065222', // App ID status : true, // check login status cookie : true, // enable cookies to allow the server to access the session xfbml : true, // parse XFBML oauth : true });
I load ajax page with this code:
function loadFacebook(){ $('#container').load('http://www.manmade.se/manmade/guiden/facebook_onweb.html'); FB.XFBML.parse(); }
And on the loaded ajax page, I have a facebook code, like facebook like field.
source share