misheck Posted May 2, 2010 Share Posted May 2, 2010 I am trying to put a like and recommend button on my website but I have now only managed to get it to work with IE and not with firefox or flock. I need help with linking the js SDK locally rather than from the website and I am using the xml or fb so that my website speed will not be affected by the app. I need to know how to load the javascript locally rather than from the website, I have downloaded the javascript SDK from the website but I dont know which file to link to. Here is a example I am trying to work on but its only working on IE and not other browsers. I have tried to register to the facebook developer website but its not proceeding to the register section so I cannot post on the site to get help. Here is the example I have tried <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"> <script src="/xfbml/xfbml.js"></script> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <title>shout-africa</title> </head> <body> <h1>shout-africa</h1> <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: '122975394383945', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; e.async = true; document.getElementById('fb-root').appendChild(e); }()); </script> <fb:like href="www.shout-africa.com" layout="button_count" show_faces="true" width="10" action="like" colorscheme="light"></fb:like> </body> </html> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.